ArduinoClient.h File Reference

#include <fcntl.h>
#include <string.h>
#include <stdint.h>
#include <stdlib.h>
#include <unistd.h>
#include <cctype>
#include <termios.h>
#include <sys/ioctl.h>
#include "../Shared/Utilities.h"

Go to the source code of this file.

Classes

class  ArduinoClient
 Arduino communication class. More...

Defines

#define DEVICE_ID   1
 Define the target Arduino ID.
#define MAX_ERRORS   5
 Define the max errors before reset.

Enumerations

enum  ArduinoInstr {
  CMD_INIT = 0, CMD_UNIT, CMD_SETSPEED, CMD_SETTURN,
  CMD_GETRANGE, CMD_GETBEARING, CMD_GETSPEED
}
 Arduino instruction set. More...
enum  ArduinoRet { RET_OK = 0, RET_ERROR, RET_VAL }
 Arduino return status. More...

Variables

static const char ArduinoInstrStr [7][4]
 The string array that contains the ArduinoInstructionSet values.
static const char ArduinoRetStr [2][4]
 The returned string status that should be expected.


Define Documentation

#define DEVICE_ID   1

Define the target Arduino ID.

#define MAX_ERRORS   5

Define the max errors before reset.


Enumeration Type Documentation

Arduino instruction set.

Enumerator:
CMD_INIT 
CMD_UNIT 
CMD_SETSPEED 
CMD_SETTURN 
CMD_GETRANGE 
CMD_GETBEARING 
CMD_GETSPEED 

enum ArduinoRet

Arduino return status.

Enumerator:
RET_OK 
RET_ERROR 
RET_VAL 


Variable Documentation

const char ArduinoInstrStr[7][4] [static]

Initial value:

{
        "!IN", 
        "!UN", 
        "!SS", 
        "!ST", 
        "!GR", 
        "!GB", 
        "!GS", 
}
The string array that contains the ArduinoInstructionSet values.

const char ArduinoRetStr[2][4] [static]

Initial value:

{
        "?OK", 
        "?ER", 
}
The returned string status that should be expected.


Generated on Sun Feb 21 00:00:08 2010 for Penn State Robotics Club: Mini Grand Challenge 2010 by  doxygen 1.5.5