Buoyancy Firmware  1.0
Buoyancy Vehicle Firmware Documentation
FSM.c File Reference
#include "FSM.h"
Include dependency graph for FSM.c:

Functions

systemState_t InitStateHandler (void)
 handler to go to initialization state. More...
 
systemState_t IdleStateHandler (void)
 handler to go to idle state. More...
 
systemState_t ConfigureStateHandler (void)
 handler to go to configuration state. More...
 
systemState_t failureHandler (void)
 handler to go to failure state. More...
 
systemState_t MissionStartHandler (void)
 handler to go to mission state. More...
 
systemState_t MissionFinishedHandler (void)
 handler to go to PickUp state. More...
 
systemState_t MissionAbortHandler (void)
 handler to go to failure state upon aborted mission. More...
 
systemState_t SleepHandler (void)
 handler to go to PickUp state. More...
 
systemState_t LowPowerHandler (void)
 handler to go to low power state state. More...
 
void waitForEvent ()
 handler to go to failure state. More...
 
void INITstate (void)
 Initialize Finite state machine after reset. More...
 
void IDLEstate ()
 Idle state, transistion to sleep mode after 2 minutes. More...
 
void CONFIGUREstate ()
 Configure state, BLE advertise to configre vehicle or transfer file. More...
 
void MISSIONstate ()
 Mission state, BLE is disconnected, and mission is started. More...
 
void PICKUPstate ()
 PickUp state, BLE is advertising, and vehicle can be re-configured and/or file transfered. More...
 
void SLEEPstate (void)
 Sleep state, SD card is unmounted and system is powered down to off-mode. More...
 
void LOWPOWERstate (void)
 Low Power state, vehicle is floated to surface, SD card is unmounted. More...
 
void FAILUREstate (void)
 Failure state, vehicle is floated to surface, SD card is unmounted. More...
 
void FSM (void)
 Main FSM loop. More...
 

Variables

mission_t mission
 Create mission struct instance. More...