[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gpsd-dev] [PATCH 1/6] Add missing attitude field initialisation in NMEA
From: |
chris |
Subject: |
[gpsd-dev] [PATCH 1/6] Add missing attitude field initialisation in NMEA TNTHTM |
Date: |
Sat, 21 Apr 2012 10:34:17 +0100 |
From: Christian Gagneraud <address@hidden>
Depth and Temperature are not initialised, causing the JSON output to
report a zero value instead of not reporting them at all
---
driver_nmea0183.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/driver_nmea0183.c b/driver_nmea0183.c
index e66c4c3..c269180 100644
--- a/driver_nmea0183.c
+++ b/driver_nmea0183.c
@@ -915,6 +915,8 @@ static gps_mask_t processTNTHTM(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 (%c).\n",
--
1.7.0.4
- [gpsd-dev] [RFC] Add support for Airmar PB200 Weather station, chris, 2012/04/21
- [gpsd-dev] [PATCH 1/6] Add missing attitude field initialisation in NMEA TNTHTM,
chris <=
- [gpsd-dev] [PATCH 2/6] Add new NMEA talker ID (WI, HC and TI), chris, 2012/04/21
- [gpsd-dev] [PATCH 5/6] Add a wind data structure, chris, 2012/04/21
- [gpsd-dev] [PATCH 3/6] Add new fields to the attitude data structure, chris, 2012/04/21
- [gpsd-dev] [PATCH 4/6] Add heading and rate of turn NMEA sentences (HDG, ROT), chris, 2012/04/21
- [gpsd-dev] [PATCH 6/6] Add Wind related NMEA sentence (MWD, MWV, VWR, VWT), chris, 2012/04/21
- Re: [gpsd-dev] [RFC] Add support for Airmar PB200 Weather station, Eric S. Raymond, 2012/04/21
- Re: [gpsd-dev] [RFC] Add support for Airmar PB200 Weather station, address@hidden, 2012/04/21