[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gpsd-dev] Scaled AIS JSON messages...
From: |
Christian Gagneraud |
Subject: |
Re: [gpsd-dev] Scaled AIS JSON messages... |
Date: |
Wed, 22 Aug 2012 10:21:54 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:14.0) Gecko/20120713 Thunderbird/14.0 |
On 22/08/12 09:13, address@hidden wrote:
Hello,
Hi Reinhard,
as much as i understand, the course in the gpsd ais type 1 message is
scaled by ten, but the heading is not.
Correct.
During test with the nmea2000 ais decoder, i see no difference for
the course value, it is scaled by ten regardless if scaled is true a
false.
You are right, in scaled mode the course is not scaled. This is a
mistake in gpsd_json.c.
Should i insert the course value also only as a number between 0 and
359?
No, you should fill the structure with the raw course value (scaled by ten).
Chris
Thank you
Reinhard
--
Christian Gagneraud,
Embedded systems engineer.
Techworks Marine
1 Harbour road
Dun Laoghaire
Co. Dublin
Ireland
Tel: + 353 (0) 1 236 5990
Web: http://www.techworks.ie/