Rocket Hover/Landing Sim

A 6-Degrees-of-Freedom model of a Rocket with a main engine, RCS boosters, and a depleting fuel supply (black bar level), equipped with a cascade-PID controller commanding it on a 3-D figure-eight path (red-dotted setpoints) from take-off to landing in the same spot. Air resistance is modelled on the cylindrical frame in the damping terms and the fuel supply changes the CoG and inertia of the vehicle during the simulation. The fuel depletion rate is based on how much control effort is used to drive the engines. Scripted and simulated in MATLAB 2018b.