DriveWorks SDK Reference

| 0.6.67 Release

GPS.h
Go to the documentation of this file.
1 // This code contains NVIDIA Confidential Information and is disclosed
3 // under the Mutual Non-Disclosure Agreement.
4 //
5 // Notice
6 // ALL NVIDIA DESIGN SPECIFICATIONS AND CODE ("MATERIALS") ARE PROVIDED "AS IS" NVIDIA MAKES
7 // NO REPRESENTATIONS, WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO
8 // THE MATERIALS, AND EXPRESSLY DISCLAIMS ANY IMPLIED WARRANTIES OF NONINFRINGEMENT,
9 // MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
10 //
11 // NVIDIA Corporation assumes no responsibility for the consequences of use of such
12 // information or for any infringement of patents or other rights of third parties that may
13 // result from its use. No license is granted by implication or otherwise under any patent
14 // or patent rights of NVIDIA Corporation. No third party distribution is allowed unless
15 // expressly authorized by NVIDIA. Details are subject to change without notice.
16 // This code supersedes and replaces all information previously supplied.
17 // NVIDIA Corporation products are not authorized for use as critical
18 // components in life support devices or systems without express written approval of
19 // NVIDIA Corporation.
20 //
21 // Copyright (c) 2016 NVIDIA Corporation. All rights reserved.
22 //
23 // NVIDIA Corporation and its licensors retain all intellectual property and proprietary
24 // rights in and to this software and related documentation and any modifications thereto.
25 // Any use, reproduction, disclosure or distribution of this software and related
26 // documentation without an express license agreement from NVIDIA Corporation is
27 // strictly prohibited.
28 //
30 
46 #ifndef DW_SENSORS_GPS_GPS_H__
47 #define DW_SENSORS_GPS_GPS_H__
48 
49 #include <dw/core/Config.h>
50 #include <dw/core/Exports.h>
51 #include <dw/core/Types.h>
52 
53 #include <dw/sensors/Sensors.h>
54 
55 #ifdef __cplusplus
56 extern "C" {
57 #endif
58 
60 typedef struct dwGPSFrame {
63 
66 
69 
72 
75 
78 
81 
83  char utcTime[16];
84 
86  char utcDate[16];
87 
90 
93 } dwGPSFrame;
94 
113  dwSensorHandle_t sensor);
114 
130 dwStatus dwSensorGPS_processRawData(const uint8_t *data, size_t size, dwSensorHandle_t sensor);
131 
146 
147 #ifdef __cplusplus
148 }
149 #endif
150 
151 #endif // DW_SENSORS_GPS_GPS_H__
char utcTime[16]
UTC time as provided in the GPS package [hhmmss.sss] (null terminated).
Definition: GPS.h:83
float64_t vdop
Vertical dilution of precision (VDOP)
Definition: GPS.h:92
NVIDIA DriveWorks API: Core Types
float64_t latitude
Latitude in degrees.
Definition: GPS.h:65
uint64_t dwTime_t
Specifies a timestamp unit, in microseconds.
Definition: Types.h:89
char utcDate[16]
UTC date as provided in the GPS package [ddmmyy] (null terminated).
Definition: GPS.h:86
NVIDIA DriveWorks API: Core Exports
double float64_t
Definition: Types.h:78
struct dwSensorObject * dwSensorHandle_t
Handle representing a sensor.
Definition: Sensors.h:80
dwStatus
Status definition.
Definition: Status.h:167
NVIDIA DriveWorks API: Sensors
DW_API_PUBLIC dwStatus dwSensorGPS_processRawData(const uint8_t *data, size_t size, dwSensorHandle_t sensor)
Decodes RAW data previously read.
DW_API_PUBLIC dwStatus dwSensorGPS_popFrame(dwGPSFrame *frame, dwSensorHandle_t sensor)
Returns any GPS frame previously processed through RAW data stream.
float64_t course
Course relative to true north in degrees.
Definition: GPS.h:74
float64_t altitude
Altitude in m over see level as reported by the GPS sensor, represented following WGS84...
Definition: GPS.h:71
float64_t climb
Vertical speed in m/s.
Definition: GPS.h:80
dwTime_t timestamp_us
Timestamp of the message when first received [usec].
Definition: GPS.h:62
float64_t speed
Horizontal speed in m/s.
Definition: GPS.h:77
float64_t hdop
Horizontal dilution of precision (HDOP)
Definition: GPS.h:89
DW_API_PUBLIC dwStatus dwSensorGPS_readFrame(dwGPSFrame *frame, dwTime_t timeout_us, dwSensorHandle_t sensor)
Reads the next GPS packet with a given timeout.
float64_t longitude
Longitude in degrees.
Definition: GPS.h:68
#define DW_API_PUBLIC
Definition: Exports.h:76
A GPS packet containing localization information.
Definition: GPS.h:60