| 
    Aria
    2.8.0
    
   | 
 
This class will read a config packet from the robot. More...
#include <ArRobotBatteryPacketReader.h>
Public Member Functions | |
| ArRobotBatteryPacketReader (ArRobot *robot) | |
| Constructor.  | |
| int | getAbsSOC (int battery) | 
| Gets the absolute state of charge for a particular battery.  | |
| int | getFlags1 (int battery) | 
| Gets the flags1 for a particular battery.  | |
| int | getFlags2 (int battery) | 
| Gets the flags2 for a particular battery.  | |
| int | getFlags3 (int battery) | 
| Gets the flags3 for a particular battery.  | |
| int | getNumBatteries (void) const | 
| Gets the number of batteries.  | |
| int | getNumBytesPerBattery (void) const | 
| Gets the number of bytes per battery.  | |
| int | getRelSOC (int battery) | 
| Gets the relative state of charge for a particular battery.  | |
| bool | hasPacketArrived (void) const | 
| See if we've gotten the data.  | |
| bool | haveRequestedPackets (void) | 
| See if we've requested packets.  | |
| void | requestContinuousPackets (void) | 
| Request a continous stream of packets.  | |
| void | requestSinglePacket (void) | 
| Request a single packet..  | |
| void | stopPackets (void) | 
| Stop the stream of packets.  | |
| ~ArRobotBatteryPacketReader () | |
| Destructor.  | |
Protected Member Functions | |
| void | connectCallback (void) | 
| internal, packet handler  | |
| bool | packetHandler (ArRobotPacket *packet) | 
| internal, packet handler  | |
Protected Attributes | |
| std::map< int, int > | myAbsSOC | 
| ArFunctorC< ArRobotBatteryPacketReader > | myConnectCB | 
| std::map< int, int > | myFlags1 | 
| std::map< int, int > | myFlags2 | 
| std::map< int, int > | myFlags3 | 
| ArTime | myLastPacketRequest | 
| int | myNumBatteries | 
| int | myNumBytesPerBattery | 
| bool | myPacketArrived | 
| ArRetFunctor1C< bool, ArRobotBatteryPacketReader, ArRobotPacket * > | myPacketHandlerCB | 
| std::map< int, int > | myRelSOC | 
| bool | myRequestedBatteryPackets | 
| ArRobot * | myRobot | 
This class will read a config packet from the robot.