|
From: | teyrana |
Subject: | Re: [gpsd-dev] [RFC] $GPVTG & magnetic course |
Date: | Wed, 30 May 2018 18:39:09 -0400 |
Ah, right. I forget VTG was track, not heading.Option B is to calculate the magnetic declination by subtracting Magnetic Track from True Track. And we could store *that* quantity in the navdata_t -> compass_declination. That would allow us to extract the information from this message, without adding new fields.Thoughts?On Mon, May 28, 2018 at 7:24 PM, Gary E. Miller <address@hidden> wrote:Yo teyrana!
On Sat, 26 May 2018 18:43:26 -0400
teyrana <address@hidden> wrote:
> I was looking through gps.h, and I notice that " struct navdata_t {"
> @ line 1849 has a 'compass_heading' field. Are you okay with storing
> the GPVTG data there?
'heading' and 'track' are not the same.
'heading' is where you are pointed. 'track' is where you actually went.
Imagine you are in a sailboat pointed north, with a hurricane force
wind from the east. You heading is north, but your track will be to
the west.
> p.s. FYI: compass 'dip', (aka compass inclination) is in the 'struct
> attitude_t', while the other compass deviation & variation are in the
> different struct: 'navdata'.
Yeah, a mess.
RGDS
GARY
------------------------------------------------------------ ---------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
address@hidden Tel:+1 541 382 8588
Veritas liberabit vos. -- Quid est veritas?
"If you can’t measure it, you can’t improve it." - Lord Kelvin
[Prev in Thread] | Current Thread | [Next in Thread] |