#include <ocean.h>
Classes | |
struct | regPair |
Public Member Functions | |
void | initialize (const std::string &input_dev) |
ocean (int id, int debug=0) | |
void | read_file (const std::string &input) |
int | run () |
void | setDebugLevel (int) |
~ocean () | |
Public Attributes | |
pr2_msgs::BatteryServer2 | server |
Static Public Attributes | |
static const int | BAD_PACKET = -1 |
static const int | INPUT_BUF_SIZE = 128 |
static const unsigned int | MAX_PACKET_LENGTH = 120 |
static const int | MAXCHANNELS = 16 |
static const int | MAXTAGLEN = 8 |
static const int | NMEA_MAX = 120 |
static const int | NMEA_PACKET = 1 |
static const int | NO_PACKET = 0 |
static const int | OUTPUT_BUF_SIZE = 128 |
static const struct regPair | regList [] |
static const unsigned | regListLength |
Private Member Functions | |
void | character_discard () |
int | commTest () |
long int | convertStringBase16 (const char *input) |
void | flush (void) |
int | get_speed (void) |
char * | gpsd_hexdump (void *binbuf, size_t binbuflen) |
time_t | mkgmtime (register struct tm *t) |
void | nextstate (unsigned char c) |
void | nmea_add_checksum (char *sentence) |
unsigned int | nmea_parse () |
int | nmea_send (const char *fmt,...) |
void | packet_accept (int packet_type) |
void | packet_discard () |
ssize_t | packet_get () |
ssize_t | packet_parse (size_t newdata) |
void | packet_reset () |
unsigned int | processBattery (int count, char *field[]) |
unsigned int | processController (int count, char *field[]) |
unsigned int | processSystem (int count, char *field[]) |
void | report (int errlevel, const char *fmt,...) |
void | resetOcean () |
void | set_speed (int speed) |
int | string_send (const char *fmt,...) |
Private Attributes | |
int | acknowledge |
unsigned long | char_counter |
int | currentBattery |
int | currentBaudRate |
int | currentBaudRateIndex |
int | currentPort |
int | cycleComplete |
int | debuglevel |
char * | idString |
unsigned char | inbuffer [INPUT_BUF_SIZE+1] |
size_t | inbuflen |
unsigned char * | inbufptr |
int | inputDevice |
unsigned char | outbuffer [OUTPUT_BUF_SIZE+1] |
size_t | outbuflen |
int | packetState |
int | packetType |
int | sentenceCount |
int | sentenceLength |
char | tag [MAXTAGLEN] |
struct termios | ttyset |
ocean::ocean | ( | int | id, |
int | debug = 0 |
||
) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
static |