bat_checker
Battery checker module When the battery voltage goes below the BAT_LOW level, this will toggle a GPIO/LED. If the battery voltage is lower than BAT_CRITICAL level, the LED/GPIO stays ON. The output signal can be connected to an actaul LED or a buzzer to indicated the end of battery to the user. When a LED is used, define the LED number in your airframe with BAT_CHECKER_LED. When a GPIO is used, define the GPIO port and pin in your airframe with BAT_CHECKER_GPIO. You should at least use one of these two options.
Name |
Value |
Description |
---|---|---|
BAT_CHECKER_DELAY |
delay |
number of seconds the battery voltage has to below LOW_BAT_LEVEL before warning signal is activated |
BAT_CHECKER_LED |
X |
led number to use for the warning signal |
BAT_CHECKER_GPIO |
GPIOX,GPIOY |
alternatively, a GPIO can be set instead of a LED (ex: GPIOA,GPIO5) |
BAT_CHECKER_GPIO_ON |
gpio_set |
tells if output signal is ON when GPIO is high or low |
BAT_CHECKER_GPIO_OFF |
gpio_clear |
tells if output signal is OFF when GPIO is high or low |