#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 DEVICE_ID 1 |
Define the target Arduino ID.
| #define MAX_ERRORS 5 |
Define the max errors before reset.
| enum ArduinoInstr |
| enum ArduinoRet |
const char ArduinoInstrStr[7][4] [static] |
Initial value:
{
"!IN",
"!UN",
"!SS",
"!ST",
"!GR",
"!GB",
"!GS",
}
const char ArduinoRetStr[2][4] [static] |
Initial value:
{
"?OK",
"?ER",
}
1.5.5