Da Vinci Firmware 1
Firmware for the DaVinci-M rocket avionics board.
Loading...
Searching...
No Matches
FSM Safety Counters

Defines how many consecutive cycles a condition must be met before a state transition occurs. More...

Macros

#define LIFTOFF_TRESHOLD_ACC   6000
 Raw accelerometer reading threshold for liftoff detection.
 
#define COASTING_SAFETY_COUNTER   2
 Cycles for burnout detection.
 
#define APOGEE_SAFETY_COUNTER   3
 Cycles for apogee detection (velocity < 0).
 
#define MAIN_SAFETY_COUNTER   3
 Cycles for main parachute deployment altitude check.
 
#define TOUCHDOWN_SAFETY_COUNTER   3
 Cycles for touchdown logic.
 
#define AIRBRAKES_SAFETY_COUNTER   5
 Safety counter related to airbrake deployment logic.
 
#define MIN_TICK_COUNTS_BETWEEN_BURNING_APOGEE   2500
 Minimum time ticks between burnout and apogee.
 
#define LIFTOFF_SAFETY_COUNTER   30
 Cycles for liftoff logic.
 

Detailed Description

Defines how many consecutive cycles a condition must be met before a state transition occurs.

These counters prevent spurious state changes due to noisy sensor data.

Macro Definition Documentation

◆ AIRBRAKES_SAFETY_COUNTER

#define AIRBRAKES_SAFETY_COUNTER   5

Safety counter related to airbrake deployment logic.

Definition at line 64 of file FLIGHT_PARAMETERS_CONFIG.h.

◆ APOGEE_SAFETY_COUNTER

#define APOGEE_SAFETY_COUNTER   3

Cycles for apogee detection (velocity < 0).

Definition at line 61 of file FLIGHT_PARAMETERS_CONFIG.h.

◆ COASTING_SAFETY_COUNTER

#define COASTING_SAFETY_COUNTER   2

Cycles for burnout detection.

Definition at line 60 of file FLIGHT_PARAMETERS_CONFIG.h.

◆ LIFTOFF_SAFETY_COUNTER

#define LIFTOFF_SAFETY_COUNTER   30

Cycles for liftoff logic.

Definition at line 66 of file FLIGHT_PARAMETERS_CONFIG.h.

◆ LIFTOFF_TRESHOLD_ACC

#define LIFTOFF_TRESHOLD_ACC   6000

Raw accelerometer reading threshold for liftoff detection.

Definition at line 59 of file FLIGHT_PARAMETERS_CONFIG.h.

◆ MAIN_SAFETY_COUNTER

#define MAIN_SAFETY_COUNTER   3

Cycles for main parachute deployment altitude check.

Definition at line 62 of file FLIGHT_PARAMETERS_CONFIG.h.

◆ MIN_TICK_COUNTS_BETWEEN_BURNING_APOGEE

#define MIN_TICK_COUNTS_BETWEEN_BURNING_APOGEE   2500

Minimum time ticks between burnout and apogee.

Definition at line 65 of file FLIGHT_PARAMETERS_CONFIG.h.

◆ TOUCHDOWN_SAFETY_COUNTER

#define TOUCHDOWN_SAFETY_COUNTER   3

Cycles for touchdown logic.

Definition at line 63 of file FLIGHT_PARAMETERS_CONFIG.h.