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

Functions

void missionInit (void)
 Initialize mission module. More...
 
void prepareMission ()
 
More...
 
void runMission ()
 
More...
 
void CalcPressureAndDepth (void)
 
More...
 
void missionLogInit ()
 
More...
 
void updateMissionLog ()
 
More...
 

Variables

bool motorStopped
 Flag to signal motor stopped. More...
 
bool bottomLimit
 Flag to signal when bottom limit switch is reached. More...
 
bool SAADCdataReady = false
 Flag to signal SAADC data is ready to be read and calculated, and to run PID. More...
 
bool sampleSensorData = false
 Flag to signal sampling battery, pressure, and TMP117. More...
 
bool missionLogUpdated = false
 Flag to signal mission log is updated. More...
 
bool TMP117dataReady = false
 Flag to signal TMP117 data is ready to be read. More...
 
bool receiveTMP117 = false
 Flag to signal that data is expected to be received from TMP117. More...
 
float EMA_state = 0.0
 global filter output variable More...
 
missionLog_t missionLog
 Create mission log instance. More...
 
struct pid_controller ctrlData
 Create PID controller control data instance. More...
 
pid_t pid
 Create PID controller instnace. More...
 
const float SAADC_pressure_range = SAADC_MAX - SAADC_MIN
 
const float bar_pr_saadcValue = BAR_RANGE/SAADC_pressure_range
 
const float pascal_range = PASCAL_MAX-PASCAL_MIN
 
const float pascal_pr_volts = pascal_range/(PRESSURE_VOLTAGE_MAX-PRESSURE_VOLTAGE_MIN)