An exploration of control theory, using Kerbal Space Program.
All examples require these mods to be added to Kerbal Space Program.
- kRPC
The Samara vehicle is about as simple as possible -- an engine, tankage, legs, and a control core.
mix run examples/samara/samara-1.exs
- test throttle control
- test load sensing on legs
mix run examples/samara/samara-2.exs
- test throttle control
- surface altitude to 10 meters
- coast to max altitude (vertical velocity == 0 m/s)
- hover for 10 seconds
- descend at 1 m/s until landed
mix run examples/samara/samara-3.exs
- test PID controller on throttle
- surface altitude to 10 meters
- coast to max altitude (vertical velocity == 0 m/s)
- set controller setpoint to 10 meters
- loop until surface altitude is at setpoint and vertical velocity == 0 m/s
- hover for 10 seconds
- set controller setpoint to 50 meters
- loop until surface altitude is at setpoint and vertical velocity == 0 m/s
- hover for 10 seconds
- set controller setpoint to 20 meters
- loop until surface altitude is at setpoint and vertical velocity == 0 m/s
- hover for 10 seconds
- descend at 1 m/s until landed
- test inertial navigation system
- telemetry:
- velocity vector
- direction vector
- heading (0..360)
- pitch (-90..90)
- roll (-180..180)
The Hadi vehicle is an upgrade to Samara, adding three RCS thruster blocks and a monopropellant tank.