Autodrone
Multi-Domain Vehicle
battery.h File Reference

This file initializes the battery monitor and provides functions to process the data. More...

Go to the source code of this file.

Enumerations

enum  battCells_e {
  NO_BATT , THREE = 3 , FOUR , FIVE ,
  SIX
}
 

Functions

void battMonInit (void)
 Initializes the battery monitor. More...
 
void battMonRead (void)
 Starts the ADC conversion and processes the value. More...
 

Variables

float battVoltage
 
battCells_e cells
 
bool battLow
 
bool battEmpty
 

Detailed Description

This file initializes the battery monitor and provides functions to process the data.

Author
Jeremy Wolfe
Date
10 MAR 2022

Enumeration Type Documentation

◆ battCells_e

Enumerator
NO_BATT 
THREE 
FOUR 
FIVE 
SIX 

Function Documentation

◆ battMonInit()

void battMonInit ( void  )

Initializes the battery monitor.

Returns
Void.

◆ battMonRead()

void battMonRead ( void  )

Starts the ADC conversion and processes the value.

Returns
Void.

Variable Documentation

◆ battEmpty

bool battEmpty
extern

◆ battLow

bool battLow
extern

◆ battVoltage

float battVoltage
extern

◆ cells

battCells_e cells
extern