Skip to content
Alexis Limozin edited this page Mar 11, 2024 · 11 revisions

Welcome to the AV-Firehorn-Rpi wiki!


Dependency graph

image

Finite State Machine

Finite_State_Machine_Diagram

States description

INIT

  • Initial state, the rocket is at rest.
  • Rocket on the pad, low sensor data storing rate.
From Condition Command
ERROR ON GROUND - RECOVER
CALIBRATION - RECOVER

CALIBRATION

  • Calibration mode to calibrate the sensors (accelerometer, gyroscope, barometer, Kalman filter) and warm-up the GPS.
  • Performs checks on electronics.
From Condition Command
INIT - CALIBRATE

ERROR ON GROUND

  • Safe error state that rises upon electronics or mechanical problems.
From Condition Command
CALIBRATION Sensor not detected, Radio signal lost -

MANUAL

  • This state is meant to manually check that every actuator (servos, solenoids) operates correctly by sending open/close commands to the PR board
From Condition Command
CALIBRATION All the sensors are calibrated and ready for use -

ARMED

  • The rocket is ready for filling and pressurization.
From Condition Command
THRUST SEQUENCE Pression too low in the igniter or combustion chamber -

THRUST SEQUENCE

  • Initiating thrust sequence. From here, can send an IGNITE command to the propulsion board. Start sensor sampling and data storing at a high rate.
From Condition Command
ARMED Pressure above certain level in the igniter and combustion chambers IGNITION

ASCENT

  • Keep a high sensor sampling and data storing rate.
From Condition Command
THRUST SEQUENCE The engine properly ignited and a liftoff has been detected -

DESCENT

  • The rocket reached the apogee. Vent to depressurize the tanks.
  • The recovery commands can be sent to the recovery board in this state only.
From Condition Command
ASCENT Apogee detected -

LANDED

From Condition Command
DESCENT The vehicle is immobile and fully depressurized -

ERROR ON FLIGHT

  • Manually triggered to try to prevent damage to the vehicle.
  • Immediately gives the command to the propulsion board to shutdown the engine and depressurize the tanks (ABORT).
  • MANUAL DEPLOY internally calls ABORT before deploying the parachutes.
From Condition Command
THRUST SEQUENCE - ABORT
ASCENT - ABORT
DESCENT - MANUAL DEPLOY

Commands sent by GS

Name Description
CALIBRATE Move to CALIBRATION and start calibrating the sensors
RECOVER Move back to INIT to reinitialize the system
GET READY Move to READY STEADY, waiting for the ARM command
ARM Move to ARMED and wait for pressurization
IGNITION Move to THRUST SEQUENCE and ignite the engine
ABORT Move to ERROR ON FLIGHT and lock transitions
MANUAL DEPLOY Move to ERROR ON FLIGHT and deploy the recovery system
IGNITER LOX Open/close the igniter LOX valve
IGNITER FUEL Open/close the igniter Ethanol valve
MAIN LOX Open/close the LOX main valve
MAIN FUEL Open/close the Ethanol main valve
VENT LOX Open/close the LOX vent valve
VENT FUEL Open/close the Ethanol vent valve
PRESSURIZE Start the pressurization process (controlled by PR regulatur)