Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
electrical.h File Reference
#include "std.h"
#include "generated/airframe.h"
+ Include dependency graph for electrical.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  Electrical
 

Macros

#define LOW_BAT_LEVEL   10.5
 low battery level in Volts (for 3S LiPo) More...
 
#define CRITIC_BAT_LEVEL   9.8
 critical battery level in Volts (for 3S LiPo) More...
 

Functions

void electrical_init (void)
 
void electrical_periodic (void)
 

Variables

struct Electrical electrical
 

Detailed Description

Interface for electrical status: supply voltage, current, battery status, etc.

Definition in file electrical.h.


Data Structure Documentation

◆ Electrical

struct Electrical

Definition at line 44 of file electrical.h.

Data Fields
bool bat_critical battery critical status
bool bat_low battery low status
float charge consumed electric charge in Ah
float current current in A
float energy consumed energy in Wh
float vsupply supply voltage in V

Macro Definition Documentation

◆ CRITIC_BAT_LEVEL

#define CRITIC_BAT_LEVEL   9.8

critical battery level in Volts (for 3S LiPo)

Definition at line 41 of file electrical.h.

◆ LOW_BAT_LEVEL

#define LOW_BAT_LEVEL   10.5

low battery level in Volts (for 3S LiPo)

Definition at line 36 of file electrical.h.

Function Documentation

◆ electrical_init()

void electrical_init ( void  )

◆ electrical_periodic()

Variable Documentation

◆ electrical