Open bytecod3 opened 4 months ago
Another issue we need to consider is the natural delay time it takes for the parachute to deploy once the eject command has been delivered. This delay may make any other coded delays (such as the timer) seem redundant.
Powered flight transition
Initial proposal was to measure a countdown based on the ignition time. To transition to powered flight, we count down from say 5 seconds countdown. After this, the FC(flight computer) automatically switches to powered flight.
if(countdown_timer > 5) state = powered_flight
Problem
However, this is a magic number that can vary greatly based on the class of the motor being used, and if it is hardcoded into the software, it will be difficult to determine accurately during launch
Proposed method
A better method to use is to measure the altitude from ground. If the altitude is above say 50m, then the rocket MUST be in powered flight. This altitude can be got from the altimeter being used.
Drogue parachute transition
To deploy the parachute, we have to wait for some seconds after apogee is detected. After max_height of the rocket, the rocket should be coming down. once this max height is detected, start a countdown timer. Actually start a countdown timer for each max value received from the altimeter. the software will have to reset the countdown timer for each max value detected.
proposed algorithm for drougue deploy