#include <Robots/LoBot/io/LoRoombaCM.H>
Public Member Functions | |
Cmd (int cmd=0, int param=0) | |
Cmd (const Cmd &) | |
Public Attributes | |
char | bytes [LOBOT_CMD_SIZE] |
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.