waterloo-rocketry / cansw_processor_airbrakes

Processor board was developed for the 2023-2024 design cycle to perform state estimation and control tasks for Borealis's airbrakes system
2 stars 0 forks source link

Recovery phase lockout #78

Closed Joe-Joe-Joe-Joe closed 2 months ago

Joe-Joe-Joe-Joe commented 2 months ago

Currently we don't have a "recovery phase" event. The plan was to use just a timer from injector valve open but there are a number of factors that make that potentially not able to meet the requirement to retract prior to airbrake recovery.

The best way we can "predict" apogee is to look at our vertical velocity (as calculated by trajectory prediction. If it drops below a certain threshold, we are almost at apogee and we should retract the airbrakes, regardless of how long it has been since we launched. This should be ORed with the timer (sized conservatively) as a backup.