BatteryCheckControl Class Reference#include <BatteryCheckControl.h>
Inheritance diagram for BatteryCheckControl:
[legend]List of all members.
Detailed Description
when activated, this will print a battery report to stdout and light up LEDs to specify power level
The LEDs use the LedEngine::displayPercent() function, with minor/major style. This means the left column (viewing the dog head on) will show the overall power level, and the right column will show the level within the tick lit up in the left column. The more geeky among you may prefer to think of this as a two digit base 5 display.
This gives you pretty precise visual feedback as to remaining power (perhaps more than you really need, but it's as much a demo as a useful tool)
This is implemented as a Control instead of a Behavior on the assumption you wouldn't want to leave this running while you were doing other things (ie not in e-stop). But it definitely blurs the line between the two.
Definition at line 26 of file BatteryCheckControl.h.
Constructor & Destructor Documentation
BatteryCheckControl::BatteryCheckControl |
( |
|
) |
[inline] |
|
Member Function Documentation
virtual void BatteryCheckControl::deactivate |
( |
|
) |
[inline, virtual] |
|
virtual ControlBase* BatteryCheckControl::doSelect |
( |
|
) |
[inline, virtual] |
|
|
when the user has trigger an "open selection" - default is to return the hilighted control*/
The value which is returned is then activate()ed and pushed on the Controller's stack
Reimplemented from ControlBase.
Definition at line 74 of file BatteryCheckControl.h. |
virtual void BatteryCheckControl::pause |
( |
|
) |
[inline, virtual] |
|
virtual void BatteryCheckControl::processEvent |
( |
const EventBase & |
event |
) |
[inline, virtual] |
|
virtual void BatteryCheckControl::refresh |
( |
|
) |
[inline, virtual] |
|
void BatteryCheckControl::report |
( |
|
) |
[inline] |
|
The documentation for this class was generated from the following file:
|