Thunderbots Project
Loading...
Searching...
No Matches
Charger Class Reference

Public Member Functions

 Charger ()
 
float getCapacitorVoltage ()
 
bool getFlybackFault ()
 

Static Public Member Functions

static void chargeCapacitors ()
 

Constructor & Destructor Documentation

◆ Charger()

Charger ( )

Creates a Charger setting up pins and attaching interrupts.

Member Function Documentation

◆ chargeCapacitors()

void chargeCapacitors ( )
static

Sets the charge pin to HIGH to begin charging the capacitors. Note: we run in regulation mode meaning the capacitors will recharge continuously while charge is HIGH

◆ getCapacitorVoltage()

float getCapacitorVoltage ( )

Returns the voltage of the capacitors

Returns
voltage of capacitors

◆ getFlybackFault()

bool getFlybackFault ( )

Returns the status of the flyback fault

Returns
whether the flyback fault is tripped or not

The documentation for this class was generated from the following files: