Defines the GPS sensor.
Data Structures | |
struct | dwGPSFrameNew |
This structure contains one frame of data from an GPS/GNSS sensor. More... | |
Functions | |
DW_API_PUBLIC dwStatus | dwSensorGPS_popFrame (dwGPSFrame *const frame, dwSensorHandle_t const sensor) |
Returns any GPS frame previously processed through RAW data stream. More... | |
DW_API_PUBLIC dwStatus | dwSensorGPS_popFrameNew (dwGPSFrameNew *const frame, dwSensorHandle_t const sensor) |
Returns any GPS frame New previously processed through RAW data stream. More... | |
DW_API_PUBLIC dwStatus | dwSensorGPS_processRawData (uint8_t const *const data, size_t const size, dwSensorHandle_t const sensor) |
Decodes RAW data previously read. More... | |
DW_API_PUBLIC dwStatus | dwSensorGPS_processRawDataNew (uint8_t const *const data, size_t const size, dwSensorHandle_t const sensor) |
Decodes RAW data previously read. More... | |
DW_API_PUBLIC dwStatus | dwSensorGPS_readFrame (dwGPSFrame *const frame, dwTime_t const timeoutUs, dwSensorHandle_t const sensor) |
Reads the next available GPS data frame with a given timeout. More... | |
DW_API_PUBLIC dwStatus | dwSensorGPS_readFrameNew (dwGPSFrameNew *const frame, dwTime_t const timeoutUs, dwSensorHandle_t const sensor) |
Reads the next GPS packet with a given timeout. More... | |
struct dwGPSFrameNew |
Data Fields | ||
---|---|---|
float64_t | altitude |
|
float64_t | climb |
|
float64_t | course |
|
dwGPSFixStatus | fixStatus |
|
float64_t | hacc |
|
float64_t | hdop |
|
float64_t | latitude |
|
float64_t | longitude |
|
dwGPSMode | mode |
|
float64_t | pdop |
|
uint8_t | reserved[508] | Reserved space. |
uint8_t | satelliteCount |
|
float64_t | speed |
|
dwTime_t | timestamp_us |
|
dwGPSTimestampQuality | timestampQuality |
|
dwTime_t | utcTime |
|
float64_t | vacc |
|
dwGPSSignalValidityInfo | validityInfo | Signal validity information. |
float64_t | vdop |
|
DW_API_PUBLIC dwStatus dwSensorGPS_popFrame | ( | dwGPSFrame *const | frame, |
dwSensorHandle_t const | sensor | ||
) |
Returns any GPS frame previously processed through RAW data stream.
This happens on the CPU thread where the function is called, incurring an additional load on that thread.
Internally this API function will
[out] | frame | Pointer to an GPS frame structure to be filled with new data. |
[in] | sensor | Sensor handle of the sensor previously created with 'dwSAL_createSensor()'. |
DW_API_PUBLIC dwStatus dwSensorGPS_popFrameNew | ( | dwGPSFrameNew *const | frame, |
dwSensorHandle_t const | sensor | ||
) |
Returns any GPS frame New previously processed through RAW data stream.
This happens on the CPU thread where the function is called, incurring an additional load on that thread.
[out] | frame | Pointer to an GPS frame New structure to be filled with new data. |
[in] | sensor | Sensor handle of the sensor previously created with 'dwSAL_createSensor()'. |
DW_API_PUBLIC dwStatus dwSensorGPS_processRawData | ( | uint8_t const *const | data, |
size_t const | size, | ||
dwSensorHandle_t const | sensor | ||
) |
Decodes RAW data previously read.
Any processed messages can be picked up using the dwSensorGPS_popMessage() method. This happens on the CPU thread where the function is called, incurring on additional load on that thread.
Internally this API function will
[in] | data | Undecoded gps data. |
[in] | size | Size in bytes of the raw data. |
[in] | sensor | Sensor handle of the sensor previously created with 'dwSAL_createSensor()'. |
DW_API_PUBLIC dwStatus dwSensorGPS_processRawDataNew | ( | uint8_t const *const | data, |
size_t const | size, | ||
dwSensorHandle_t const | sensor | ||
) |
Decodes RAW data previously read.
Any processed messages can be picked up using the dwSensorGPS_popMessageNew() method. This happens on the CPU thread where the function is called, incurring on additional load on that thread.
[in] | data | Undecoded gps data. |
[in] | size | Size in bytes of the raw data. |
[in] | sensor | Sensor handle of the sensor previously created with 'dwSAL_createSensor()'. |
DW_API_PUBLIC dwStatus dwSensorGPS_readFrame | ( | dwGPSFrame *const | frame, |
dwTime_t const | timeoutUs, | ||
dwSensorHandle_t const | sensor | ||
) |
Reads the next available GPS data frame with a given timeout.
The method blocks until either a new valid frame is received from the sensor or the given timeout exceeds.
Frames read from the sensor do not have to be returned because the messages are copied.
Internally this API function will
[out] | frame | A pointer to a GPS frame structure to be filled with new localization data. |
[in] | timeoutUs | Specifies the timeout in us to wait for a new message. Special values: DW_TIMEOUT_INFINITE - to wait infinitly. Zero - means polling of internal queue. |
[in] | sensor | Specifies the sensor handle of the GPS sensor previously created with 'dwSAL_createSensor()'. |
DW_API_PUBLIC dwStatus dwSensorGPS_readFrameNew | ( | dwGPSFrameNew *const | frame, |
dwTime_t const | timeoutUs, | ||
dwSensorHandle_t const | sensor | ||
) |
Reads the next GPS packet with a given timeout.
The method blocks until either a new valid frame is received from the sensor or the given timeout exceeds.
[out] | frame | A pointer to a GPS frame New structure to be filled with new localization data. |
[in] | timeoutUs | Specifies the timeout in us to wait for a new message. Special values: DW_TIMEOUT_INFINITE - to wait infinitly. Zero - means polling of internal queue. |
[in] | sensor | Specifies the sensor handle of the GPS sensor previously created with 'dwSAL_createSensor()'. |