Wednesday, February 23, 2022

Running a process from C++

 When you want to run a separate process from C++:

Wednesday, February 9, 2022

Vertical Landing Rocket Competition

This year's Teknofest has a Vertical Landing Rocket Competition. We can divide the control problem into two:

  1. Stabilize orientation so that the thruster points in downward direction.
  2. Control vertical speed to achieve a soft landing.
Orientation can be stabilized via passive fins or active side jets. Since there isn't much time for manufacturing and testing, using fins seems to be the easiest choice.
Assuming that the fins achieve close to zero yaw and pitch, speed can be controlled by changing the thrust via valve control using PID.  I wrote a Matlab script that can be used as a starting point:
I also wrote a simple open loop code that has no control, you can find it here.