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

Public Member Functions

 PowerService ()
 
TbotsProto::PowerStatus poll (const TbotsProto::PowerControl &control, double kick_coeff, int kick_constant, int chip_constant)
 
void tick ()
 

Constructor & Destructor Documentation

◆ PowerService()

Service that interacts with the power board. Opens all the required ports and maintains them until destroyed.

Member Function Documentation

◆ poll()

TbotsProto::PowerStatus poll ( const TbotsProto::PowerControl &  control,
double  kick_coeff,
int  kick_constant,
int  chip_constant 
)

When the power service is polled it sends the given power control msg and returns the latest power status

Parameters
controlThe power control msg to send
Returns
the latest power status

◆ tick()

void tick ( )

Handler method called every time the timer expires a new read is requested


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