Paparazzi UAS
v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
|
Activate a buzzer/LED periodically or periodically to warn of low/critical battery level. More...
#include "modules/energy/bat_checker.h"
#include "generated/airframe.h"
#include "generated/modules.h"
#include "subsystems/electrical.h"
#include "led.h"
Go to the source code of this file.
Functions | |
void | init_bat_checker (void) |
void | bat_checker_periodic (void) |
Activate a buzzer/LED periodically or periodically to warn of low/critical battery level.
At LOW_BAT_LEVEL the buzzer will be activated periodically. At CRITIC_BAT_LEVEL the buzzer will be activated permanently.
Definition in file bat_checker.c.
void bat_checker_periodic | ( | void | ) |
Definition at line 47 of file bat_checker.c.
References Electrical::bat_critical, Electrical::bat_low, electrical, LED_OFF, LED_ON, and LED_TOGGLE.
void init_bat_checker | ( | void | ) |
Definition at line 41 of file bat_checker.c.