lobot::RoombaCM::Comm::Cmd Struct Reference

#include <Robots/LoBot/io/LoRoombaCM.H>

List of all members.

Public Member Functions

 Cmd (int cmd=0, int param=0)
 Cmd (const Cmd &)

Public Attributes

char bytes [LOBOT_CMD_SIZE]

Detailed Description

Each command sent to the low-level controller consists of four bytes. The first byte is the command code, the next two bytes are for a parameter, and the last byte is a parity byte checksum. This structure holds these four bytes together.

DEVNOTE: Instead of hard-coding the size of the char array used to hold the byte sequence making up a high-level command, we prefer the use of the LOBOT_CMD_SIZE enum defined in irccm/LoCMInterface.h (just in case this ever changes in the future, e.g., command + params + time stamp + checksum).

Definition at line 203 of file LoRoombaCM.H.


The documentation for this struct was generated from the following files:
Generated on Sun May 8 08:30:39 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3