#include <ArRobotPacket.h>
Inheritance diagram for ArRobotPacket:
This class reimplements some of the buf operations since the robot is opposeite endian from intel. Also has the getID for convenience.
You can just look at the documentation for the ArBasePacket except for the 4 new functions here, verifyCheckSum, getID, print, and calcCheckSum.
Public Member Functions | |
ArRobotPacket (unsigned char sync1=0xfa, unsigned char sync2=0xfb) | |
Constructor. | |
ArTypes::Byte2 | calcCheckSum (void) |
returns the checksum, probably used only internally | |
virtual void | finalizePacket (void) |
ArTypes::UByte | getID (void) |
returns the ID of the packet | |
ArTime | getTimeReceived (void) |
Gets the time the packet was received at. | |
virtual void | log () |
void | setID (ArTypes::UByte id) |
Sets the ID of the packet. | |
void | setTimeReceived (ArTime timeReceived) |
Sets the time the packet was received at. | |
bool | verifyCheckSum (void) |
returns true if the checksum matches what it should be | |
virtual | ~ArRobotPacket () |
Destructor. | |
Protected Attributes | |
unsigned char | mySync1 |
unsigned char | mySync2 |
ArTime | myTimeReceived |
|
Constructor.
|