PX4 Firmware
PX4 Autopilot Software http://px4.io
|
Go to the source code of this file.
Classes | |
struct | SurveyInStatus |
class | GPSHelper |
Macros | |
#define | GPS_READ_BUFFER_SIZE 150 |
buffer size for the read() call. Messages can be longer than that. More... | |
#define | GPS_EPOCH_SECS ((time_t)1234567890ULL) |
Typedefs | |
typedef int(* | GPSCallbackPtr) (GPSCallbackType type, void *data1, int data2, void *user) |
Callback function for platform-specific stuff. More... | |
Definition in file gps_helper.h.
#define GPS_EPOCH_SECS ((time_t)1234567890ULL) |
Definition at line 145 of file gps_helper.h.
Referenced by GPSDriverAshtech::handleMessage(), GPSDriverMTK::handleMessage(), GPSDriverSBF::payloadRxDone(), and GPSDriverUBX::payloadRxDone().
#define GPS_READ_BUFFER_SIZE 150 |
buffer size for the read() call. Messages can be longer than that.
Definition at line 46 of file gps_helper.h.
Referenced by GPSDriverAshtech::receive(), GPSDriverMTK::receive(), GPSDriverEmlidReach::receive(), GPSDriverSBF::receive(), GPSDriverUBX::receive(), and GPSDriverSBF::sendMessageAndWaitForAck().
typedef int(* GPSCallbackPtr) (GPSCallbackType type, void *data1, int data2, void *user) |
Callback function for platform-specific stuff.
data1 and data2 depend on type and user is the custom user-supplied argument.
Definition at line 132 of file gps_helper.h.
|
strong |
Enumerator | |
---|---|
readDeviceData | Read data from device. This is a blocking operation with a timeout. data1: points to a buffer to be written to. The first sizeof(int) bytes contain the timeout in ms when calling the method. data2: buffer length in bytes. Less bytes than this can be read. return: num read bytes, 0 on timeout (the method can actually also return 0 before the timeout happens). |
writeDeviceData | Write data to device data1: data to be written data2: number of bytes to write return: num written bytes. |
setBaudrate | set Baudrate data1: ignored data2: baudrate return: 0 on success |
gotRTCMMessage | Got an RTCM message from the device. data1: pointer to the message data2: message length return: ignored |
surveyInStatus | message about current survey-in status data1: points to a SurveyInStatus struct data2: ignored return: ignored |
setClock | can be used to set the current clock accurately data1: pointer to a timespec struct data2: ignored return: ignored |
Definition at line 49 of file gps_helper.h.
|
strong |
Definition at line 101 of file gps_helper.h.