Autodrone
Multi-Domain Vehicle
battery.c File Reference

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

#include "board.h"

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 = false
 
bool battEmpty = false
 

Detailed Description

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

Author
Jeremy Wolfe
Date
10 MAR 2022

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 = false

◆ battLow

bool battLow = false

◆ battVoltage

float battVoltage

◆ cells

battCells_e cells