dRonin
adbada4
dRonin firmware
|
Files | |
file | battery.c |
Module to read the battery Voltage and Current periodically and set alarms appropriately. | |
Macros | |
#define | STACK_SIZE_BYTES 624 |
#define | TASK_PRIORITY PIOS_THREAD_PRIO_LOW |
#define | SAMPLE_PERIOD_MS 250 |
Functions | |
static void | batteryTask (void *parameters) |
static int32_t | BatteryStart (void) |
int32_t | BatteryInitialize (void) |
Variables | |
static bool | module_enabled = false |
static struct pios_thread * | batteryTaskHandle |
static int8_t | voltageADCPin = -1 |
static int8_t | currentADCPin = -1 |
static bool | battery_settings_updated |
static float | avg_current_lpf_for_time |
#define TASK_PRIORITY PIOS_THREAD_PRIO_LOW |
int32_t BatteryInitialize | ( | void | ) |
|
static |