|
| | PowerService () |
| |
| TbotsProto::PowerStatus | poll (const TbotsProto::PowerControl &control, double kick_coeff, int kick_constant, int chip_constant) |
| |
| void | tick () |
| |
◆ PowerService()
Service that interacts with the power board. Opens all the required ports and maintains them until destroyed.
◆ 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
-
| control | The power control msg to send |
- Returns
- the latest power status
◆ 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:
- src/software/embedded/services/power.h
- src/software/embedded/services/power.cpp