NVIDIA DriveWorks API: GPS
Description: This file defines methods to access GPS sensor.
Definition in file GPS.h.
Go to the source code of this file.
Data Structures | |
| struct | dwGPSFrameNew |
| This structure contains one frame of data from an GPS/GNSS sensor. More... | |
Functions | |
| 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_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_popFrame (dwGPSFrame *const frame, dwSensorHandle_t const sensor) |
| Returns any GPS frame previously processed through RAW data stream. More... | |
| struct dwGPSFrameNew | DW_DEPRECATED ("dwGPSFrameNew is deprecated and will be removed soon. Please use dwGPSFrame instead") |
| This structure contains one frame of data from an GPS/GNSS sensor. More... | |
| DW_API_PUBLIC dwStatus | dwSensorGPS_readFrameNew (dwGPSFrameNew *const frame, dwTime_t const timeoutUs, dwSensorHandle_t const sensor) DW_DEPRECATED("dwSensorGPS_readFrameNew() is deprecated and will be removed soon. Please use dwSensorGPS_readFrame() instead") |
| Reads the next GPS packet with a given timeout. More... | |
| DW_API_PUBLIC dwStatus | dwSensorGPS_processRawDataNew (uint8_t const *const data, size_t const size, dwSensorHandle_t const sensor) DW_DEPRECATED("dwSensorGPS_processRawDataNew() is deprecated and will be removed soon. Please use dwSensorGPS_processRawData() instead") |
| Decodes RAW data previously read. More... | |
| DW_API_PUBLIC dwStatus | dwSensorGPS_popFrameNew (dwGPSFrameNew *const frame, dwSensorHandle_t const sensor) DW_DEPRECATED("dwSensorGPS_popFrameNew() is deprecated and will be removed soon. Please use dwSensorGPS_popFrame() instead") |
| Returns any GPS frame New previously processed through RAW data stream. More... | |
Variables | |
| dwGPSSignalValidityInfo | validityInfo |
| Signal validity information. More... | |
| dwTime_t | timestamp_us |
| float64_t | latitude |
| float64_t | longitude |
| float64_t | altitude |
| float64_t | course |
| float64_t | speed |
| float64_t | climb |
| float64_t | hdop |
| float64_t | vdop |
| float64_t | pdop |
| float64_t | hacc |
| float64_t | vacc |
| dwTime_t | utcTime |
| uint8_t | satelliteCount |
| dwGPSFixStatus | fixStatus |
| dwGPSTimestampQuality | timestampQuality |
| dwGPSMode | mode |
| uint8_t | reserved [508] |
| Reserved space. More... | |
| struct dwGPSFrameNew DW_DEPRECATED | ( | "dwGPSFrameNew is deprecated and will be removed soon. Please use dwGPSFrame instead" | ) |
This structure contains one frame of data from an GPS/GNSS sensor.
| 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_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_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 | Specify 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 | Specify the sensor handle of the GPS sensor previously created with 'dwSAL_createSensor()'. |
| 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 satelliteCount |
| float64_t speed |
| dwTime_t timestamp_us |
| dwGPSTimestampQuality timestampQuality |
| dwTime_t utcTime |
| float64_t vacc |
| dwGPSSignalValidityInfo validityInfo |