You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/hal/gps/gps.h
+14-13Lines changed: 14 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ extern "C" {
24
24
#endif
25
25
26
26
/* gps read pos */
27
-
#defineGPS_READ_REPORT 0
27
+
#defineGPS_READ_REPORT0
28
28
29
29
/* gps command */
30
30
#defineGPS_CMD_INIT 0x10
@@ -39,28 +39,29 @@ typedef struct {
39
39
int32_talt; /**< Altitude in 1E-3 meters (millimeters) above MSL */
40
40
41
41
uint32_ttimestamp_variance;
42
-
floats_variance_m_s; /**< speed accuracy estimate m/s */
43
-
floatc_variance_rad; /**< course accuracy estimate rad */
44
-
uint8_tfix_type; /**< 0-1: no fix, 2: 2D fix, 3: 3D fix. Some applications will not use the value of this field unless it is at least two, so always correctly fill in the fix. */
42
+
floats_variance_m_s; /**< speed accuracy estimate m/s */
43
+
floatc_variance_rad; /**< course accuracy estimate rad */
44
+
uint8_tfix_type; /**< 0-1: no fix, 2: 2D fix, 3: 3D fix. Some applications will not use the value of this field unless it is at least two, so always correctly fill in the fix. */
45
45
46
-
floateph; /**< GPS HDOP horizontal dilution of position in m */
47
-
floatepv; /**< GPS VDOP horizontal dilution of position in m */
46
+
floateph; /**< GPS HDOP horizontal dilution of position in m */
47
+
floatepv; /**< GPS VDOP horizontal dilution of position in m */
48
48
49
-
uint16_tnoise_per_ms; /**< */
50
-
uint16_tjamming_indicator; /**< */
49
+
uint16_tnoise_per_ms; /**< */
50
+
uint16_tjamming_indicator; /**< */
51
51
52
52
uint32_ttimestamp_velocity; /**< Timestamp for velocity informations */
53
53
floatvel_m_s; /**< GPS ground speed (m/s) */
54
54
floatvel_n_m_s; /**< North velocity in m/s */
55
55
floatvel_e_m_s; /**< East velocity in m/s */
56
56
floatvel_d_m_s; /**< Down velocity in m/s */
57
+
floatheading_rad; /**< Heading in rad, -PI..PI */
57
58
floatcog_rad; /**< Course over ground (NOT heading, but direction of movement) in rad, -PI..PI */
58
59
uint8_tvel_ned_valid; /**< Flag to indicate if NED speed is valid */
59
60
60
-
uint32_ttimestamp_time; /**< Timestamp for time information */
61
-
uint32_ttime_gps_usec; /**< Timestamp (microseconds in GPS format), this is the timestamp which comes from the gps module */
61
+
uint32_ttimestamp_time; /**< Timestamp for time information */
62
+
uint32_ttime_gps_usec; /**< Timestamp (microseconds in GPS format), this is the timestamp which comes from the gps module */
62
63
63
-
uint8_tsatellites_used; /**< Number of satellites used */
64
+
uint8_tsatellites_used; /**< Number of satellites used */
0 commit comments