vokkim / tuktuk-chart-plotter

Chart plotter with Signal K and MBTiles support

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Heading (True vs Magnetic)

zubenubi opened this issue · comments

instrument-config.js contains:
...
heading: { dataKey: 'navigation.headingTrue', transformFn: toDegrees, className: 'heading', title: 'HDG', format: '00', unit: '°' },
...

My nmea2000 network does not have 'navigation.headingTrue'. It does have 'navigation.headingMagnetic'. What would be the best way to add a section to instrument-config.js that would allow the chartplotter to use the heading that is present and to indicate what reference the heading uses (ex unit: '°M' or unit: '°T'?

I found that signalk-server-node plugin derived-data permits one to create headingTrue from its component parts (headingMagnetic and variation).