lightaprs / LightAPRS-W-1.0

Arduino based APRS & WSPR Tracker
GNU General Public License v3.0
62 stars 15 forks source link

Fix for position minute rounding (59.999 became 60.00) #8

Closed dl9sau closed 2 years ago

dl9sau commented 2 years ago

Fix for position minute rounding (59.999 became 60.00) -> wrong encoded APRS position.

dtostrf() roounds upp (like sprintf("%f...)). See https://github.com/lightaprs/LightAPRS-W-1.0/issues/7

Plus a feature for APRS higher precision position, see http://www.aprs.org/aprs12/datum.txt Therefore I moved updatePosition() to updateTelemetry(), where decision is made if higher resolution is desired (here heigth < 10000ft), i.e. for sending the exact landing position.