![]() |
Data Gator
Hardware and software documentation for the Data Gator project.
|
Data structure for task scheduling stored in NVS. More...
#include <scheduler.hpp>
Public Attributes | |
int | analog_t0 = -1 |
int | ht_t0 = -1 |
int | ota_t0 = -1 |
int | tlm_t0 = -1 |
Data structure for task scheduling stored in NVS.
Counters for when the last time the task was executed, the last reset counter value when reading was taken. Members are named by task name and the _t0
denotes physics-esque mathematical notation, ie this is the starting point of our calculation.
Tasks are similarly named functions which are run when the current reset count value minus the previous reset count recorded in <task_name>_t0
equals the time between task executions specified in the config header.
int planner::analog_t0 = -1 |
time since analog reading
int planner::ht_t0 = -1 |
time since temperature and humidity sensor reading
int planner::ota_t0 = -1 |
time since over the air update check was made
int planner::tlm_t0 = -1 |
time since the last telemetry message was sent