Magnetic Declination

Post Reply
dale.e
Posts: 48
Joined: Sat Sep 29, 2012 6:27 am

Magnetic Declination

Post by dale.e »

I have figurd out my magnetic declination to be 17.18 east
I dont want to reflash as its a pain to do but, I currently have "17.11f" as the setting in my config.h
that should not be enough to throw it out should it?

what is the 'f' in the settting for?

thanx in advance :)

QuadBow
Posts: 532
Joined: Fri Jan 04, 2013 10:06 am

Re: Magnetic Declination

Post by QuadBow »

f does mean that the compiler uses the value as a floating point value.
Most problably the f is not necessary because of the point in the number, so the compiler knows already it is float.
The difference between 17.11 and 17.18 is neglectable for our purposes.
More important is the sign (+ or -) which is correct in your case since +17.11f means 17.11° east.
Thus, you don't have to re-flash your board.

dale.e
Posts: 48
Joined: Sat Sep 29, 2012 6:27 am

Re: Magnetic Declination

Post by dale.e »

thanx :)
one more thing to stop thinking about.....

weisseruebe
Posts: 15
Joined: Fri Oct 12, 2012 1:13 am

Re: Magnetic Declination

Post by weisseruebe »

What is the pain when you reflash it? It should be a matter of 20 seconds?

dale.e
Posts: 48
Joined: Sat Sep 29, 2012 6:27 am

Re: Magnetic Declination

Post by dale.e »

my RCTimer AIO Pro used to lock up on every flash via the built in USB, I just found a bit of bad soldering on the PCB and repaired it so its good now.

before this I had to unplug the gps and BT and wire up a FTDI and get a thin bit of plastic threaded through my frame to press the reset at just the right time.

Post Reply