Paparazzi UAS  v5.2.2_stable-0-gd6b9f29
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
bat_checker.c File Reference

Activate a buzzer/LED periodically or periodically to warn of low/critical battery level. More...

#include "bat_checker.h"
#include "generated/airframe.h"
#include "generated/modules.h"
#include "subsystems/electrical.h"
#include "led.h"
+ Include dependency graph for bat_checker.c:

Go to the source code of this file.

Functions

void init_bat_checker (void)
 
void bat_checker_periodic (void)
 

Detailed Description

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.

Function Documentation

void bat_checker_periodic ( void  )
void init_bat_checker ( void  )

Definition at line 41 of file bat_checker.c.

References LED_INIT, and LED_OFF.