You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An extension for OpenRocket that allows simulating different wind speeds and directions for different altitudes
2
2
==============================================
3
3
4
4
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
7
7
Compiling and usage
8
8
-------------------
9
9
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.
29
11
12
+
You can add and configure it in the simulation edit dialog under Simulation options -> Add extension -> Flight -> MultiLevelWind
0 commit comments