trick/trick_sims/SIM_lander
jmpenn ee2f824550
Disable unneeded SimObjects from default_trick_sys.sm in Trick exampl… (#1719)
* Disable unneeded SimObjects from default_trick_sys.sm in Trick example sims.

* Take out unit test disable. Add some S_defines I forgot.
2024-05-23 10:12:27 -05:00
..
images Add SIM_lander README to explain what it is, and how to use. REF#997 2020-05-06 17:41:07 -05:00
models Disambiguate python use #1250 (#1251) 2022-03-22 15:15:40 -05:00
Modified_data Disambiguate python use #1250 (#1251) 2022-03-22 15:15:40 -05:00
RUN_test Fix SIM_lander input file. (#1686) 2024-04-01 11:57:28 -05:00
README.md Add SIM_lander README to explain what it is, and how to use. REF#997 2020-05-06 17:41:07 -05:00
S_define Disable unneeded SimObjects from default_trick_sys.sm in Trick exampl… (#1719) 2024-05-23 10:12:27 -05:00
S_overrides.mk Disambiguate python use #1250 (#1251) 2022-03-22 15:15:40 -05:00

SIM_lander

Graphics CLient Showing Lander on the ground

SIM_lander simulates a lunar lander, with manual and automatic controls.

Building the Simulation

In the SIM_lander directory, type trick-CP to build the simulation executable. When it's complete, you should see:

=== Simulation make complete ===

Now cd into models/graphics/ and type make. This builds the display client for the simulation.

Running the Simulation

In the SIM_lander directory:

% S_main_*.exe RUN_test/input.py

The Sim Control Panel, and a GUI called "Lander Range" should appear.

Click the Start on the Trick Sim Control Panel.

Graphics CLient Showing Lander on the ground

Using the controls shown below have fun!

Graphics CLient Showing Lander on the ground

Graphics CLient Showing Lander on the ground

Initial Conditions

To set the initial state of the lander, edit the following variables in the input file.

Variable Type Units
dyn.lander.pos double[2] m
dyn.lander.vel double[2] m
dyn.lander.angle double rad
dyn.lander.angleDot double rad/s