ArRobotPacket Class Reference

#include <ArRobotPacket.h>

Inheritance diagram for ArRobotPacket:

ArBasePacket List of all members.

Detailed Description

Represents the packets sent to the robot as well as those received from it.

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


The documentation for this class was generated from the following file:
Generated on Thu Aug 6 09:39:37 2009 for Aria by  doxygen 1.5.1