[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gpsd-dev] [PATCH 1/3] Add missing attitude field initialisation in NMEA
From: |
Christian Gagneraud |
Subject: |
[gpsd-dev] [PATCH 1/3] Add missing attitude field initialisation in NMEA HDT |
Date: |
Sun, 29 Apr 2012 16:14:31 +0100 |
User-agent: |
StGIT/0.14.3 |
Signed-off-by: Christian Gagneraud <address@hidden>
---
driver_nmea0183.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/driver_nmea0183.c b/driver_nmea0183.c
index c269180..6b46b0f 100644
--- a/driver_nmea0183.c
+++ b/driver_nmea0183.c
@@ -804,6 +804,8 @@ static gps_mask_t processHDT(int c UNUSED, char *field[],
session->gpsdata.attitude.acc_z = NAN;
session->gpsdata.attitude.gyro_x = NAN;
session->gpsdata.attitude.gyro_y = NAN;
+ session->gpsdata.attitude.temp = NAN;
+ session->gpsdata.attitude.depth = NAN;
mask |= (ATTITUDE_SET);
gpsd_report(LOG_RAW, "time %.3f, heading %lf.\n",