Skip to content

Commit 9f200b4

Browse files
committed
Initial checkin corresponding to v1.1
1 parent b520903 commit 9f200b4

11 files changed

+650
-121
lines changed

.classpath

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<classpath>
33
<classpathentry kind="src" path="src"/>
4+
<classpathentry kind="src" path="test"/>
45
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
5-
<classpathentry kind="lib" path="OpenRocket.jar"/>
6+
<classpathentry kind="lib" path="OpenRocket.jar" sourcepath="/Users/samoates/Documents/rocketry/openrocket/core/src"/>
7+
<classpathentry exported="true" kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
68
<classpathentry kind="output" path="bin"/>
79
</classpath>

MultiLevelWind.jar

12.3 KB
Binary file not shown.

OpenRocket.jar

791 KB
Binary file not shown.

README.md

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
An example simulation extension for OpenRocket
1+
An extension for OpenRocket that allows simulating different wind speeds and directions for different altitudes
22
==============================================
33

44
This is an example simulation extension plugin for OpenRocket. It defines a simulation extension that multiplies the motor thrust by a provided value.
@@ -7,23 +7,6 @@ This is an example simulation extension plugin for OpenRocket. It defines a sim
77
Compiling and usage
88
-------------------
99

10-
Compile by running `ant`. This creates the file `ThrustScaler.jar`. Copy this to the OpenRocket plugin directory (`~/.openrocket/Plugins/` on Linux, `~/Library/Application Support/OpenRocket/Plugins/` on Mac, `...\Application Data\OpenRocket\ThrustCurves\Plugins\` on Windows). Then restart OpenRocket.
11-
12-
You can add and configure it in the simulation edit dialog under Simulation options -> Add extension -> Flight -> Thrust scaler.
13-
14-
15-
Developing a simulation extension
16-
---------------------------------
17-
18-
The example simulation extension consists of four classes:
19-
20-
`ThrustScaler` is the actual extension. One instance is created for each simulation that has the extension defined. It contains the configuration and is called before the simulation is run. It can do changes to the simulation. In this case, it adds a simulation listener to the simulation run.
21-
22-
`ThrustScalerSimulationExtension` is added to an individual simulation run. Its methods are called during every step of the simulation and can perform modifications. In the example, the computed motor thrust is multiplied by the configure multiplier.
23-
24-
`ThrustScalerConfigurator` is the configuration interface for the extension. The abstract superclass handles most of the work, the class only needs to add Swing components for updating the configuration of a `ThrustScaler` object.
25-
26-
`ThrustScalerProvider` is a provider class. It is the actual plugin that OpenRocket discovers and which defines the extension class and where it is found in the UI menu structure.
27-
28-
10+
Compile by running `ant`. This creates the file `MultiLevelWind.jar`. Copy this to the OpenRocket plugin directory (`~/.openrocket/Plugins/` on Linux, `~/Library/Application Support/OpenRocket/Plugins/` on Mac, `...\Application Data\OpenRocket\ThrustCurves\Plugins\` on Windows). Then restart OpenRocket.
2911

12+
You can add and configure it in the simulation edit dialog under Simulation options -> Add extension -> Flight -> MultiLevelWind

build.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<target name="build">
88
<mkdir dir="${build.dir}"/>
99
<javac debug="true" srcdir="${src.dir}" destdir="${build.dir}" classpath="OpenRocket.jar" includeantruntime="false" source="1.6" target="1.6"/>
10-
<jar destfile="ThrustScaler.jar" basedir="${build.dir}"/>
10+
<jar destfile="MultiLevelWind.jar" basedir="${build.dir}"/>
1111
</target>
1212

1313
</project>

0 commit comments

Comments
 (0)