Go to the source code of this file.
Macros | |
#define | IDLE_TO_SLEEP_TIME APP_TIMER_TICKS(2000*60) |
2 min in idle before going to sleep. More... | |
#define | MOTOR_STOP_TIME APP_TIMER_TICKS(5000) |
Wait 5 seconds before the program check if motor need to be stopped. More... | |
#define | UPDATE_MISSIONLOG_TIMER APP_TIMER_TICKS(1000) |
Update mission log every 0.5 sec. More... | |
#define | MEASURE_BATTERY_TIMER APP_TIMER_TICKS(10000) |
Measure battery voltage everey 10 sec when not in mission state. More... | |
#define | SENSORS_SAMPLE_TIMER APP_TIMER_TICKS(500) |
Set time between each SAADC and TMP117 sample. More... | |
#define | UPDATE_FSM_TIMER APP_TIMER_TICKS(500) |
When not in mission state update FSM within i strict interval. More... | |
#define | KHZ_TO_SEC 125000 |
Convert kHz to seconds to set mission timer. More... | |
Functions | |
APP_TIMER_DEF (m_updateFSM_timer_id) | |
Create a variable to hold the repeated timer m_updateFSM_timer_id. More... | |
APP_TIMER_DEF (m_sleep_timer_id) | |
Create a variable to hold the single shot timer m_sleep_timer_id. More... | |
APP_TIMER_DEF (m_motorStop_timer_id) | |
Create a variable to hold the single shot timer m_motorStop_timer_id. More... | |
APP_TIMER_DEF (m_repeatedBattery_timer_id) | |
Create a variable to hold the repeated timer m_repeatedBattery_timer_id. More... | |
APP_TIMER_DEF (m_sampleSensorData_timer_id) | |
Create a variable to hold the repeated timer m_sampleSensorData_timer_id. More... | |
APP_TIMER_DEF (m_updateMissionLog_timer_id) | |
Create a variable to hold the repeated timer m_updateMissionLog_timer_id. More... | |
void | start_updateFSM_timer_handler () |
More... | |
void | stop_updateFSM_timer_handler () |
More... | |
void | startSampleSensorDatatimer () |
More... | |
void | stopSampleSensorDatatimer () |
More... | |
void | startSleepTimer () |
More... | |
void | stopSleepTimer () |
[start timer for Idle-to-sleep event] More... | |
void | startStopMotorTimer (void) |
start timer for count down until check if motor has stopped. More... | |
void | startMissiontimer () |
More... | |
void | stopMissiontimer () |
More... | |
void | startBatteryMeasureTimer () |
More... | |
void | stopBatteryMeasureTimer () |
More... | |
void | startUpdateMissionLogTimer () |
More... | |
void | stopUpdateMissionLogTimer () |
More... | |
void | updateMissiontimer (uint32_t time) |
More... | |
void | uninitMissiontimer () |
More... | |
void | timers_init (void) |
Function for Timer initialization. More... | |