BrainFPV / TauLabs

http://www.brainfpv.com
Other
27 stars 9 forks source link

home_dist calculation error #38

Open droney opened 8 years ago

droney commented 8 years ago

in onscreendisplay, home_dist is multiplied by convert_distance twice before it is displayed on the user screen, resulting in a 3.28X home distance if displaying in imperial units. See lines 1121 and 1348.

Attached is the updated onscreendisplay.c file with the issue corrected. onscreendisplay.zip

droney commented 8 years ago

It might be a good idea to caution people in the release notes on this one. They may have thought their transmitter range was 3X further than it really is. So when they fly the next time with this change, they could easily exceed the actual transmitter range. This issue may also have a secondary effect on how they set their geofence, so they may want to double check that setting before first flight with the new code.