todirbg / kln90b

kln90b gps for x-plane 11
6 stars 2 forks source link

Use flightmodel HPath + MagVar for aircraft track #17

Closed JDeeth closed 5 months ago

JDeeth commented 7 months ago

Fixes #8

This is basically reinstating commented-out code. Not clear why it needed commenting out... hopefully not for a solid reason?

I've not tested this thoroughly but it's surely more correct than using aircraft heading (Psi) - if it misbehaves I'll investigate further!

todirbg commented 5 months ago

Hi, I think I this was commented because I psi dataref gives us true north without doing any math. Hpath was used for the the autopilot which was implemented internaly, I have removed that and the unit just adds values for x-plane autopilot to follow. This code was developed for xp9 or earlier so some new datarefs were not available. What is the point of doing this math? Is it more accurate or is it fixing some issue?

todirbg commented 5 months ago

Oh just saw the issue. OK.