gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gpsd-dev] [AIS] About offset and scaling


From: Eric S. Raymond
Subject: Re: [gpsd-dev] [AIS] About offset and scaling
Date: Thu, 24 May 2012 16:06:43 -0400
User-agent: Mutt/1.5.21 (2010-09-15)

Christian Gagneraud <address@hidden>:
> Currently in driver_ais.c an offset is applied for certain message
> fields (IMO 236 and IMO289 met/hydro message), and a scaling is done
> conditionally in gpsd_json.c.
> I think it would be better to apply the offset and the scaling in
> gpsd_json.c. Do you have any objection on doing this?
> I think it make more sense this way. No scaling means raw data, w/
> scaling means "engineering" units. As well when comparing gpsd
> decoding again other decoding, it make the task easier as they show
> the same behaviour (raw + scaling/offset applied).

Agreed.  Go for it.
-- 
                <a href="http://www.catb.org/~esr/";>Eric S. Raymond</a>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]