Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Bicycl_Computer_NUCLEO-F411RE Bicycl_Computer_NUCLEO-L476RG
Fork of GPS by
Revision 6:f0c13bb7d266, committed 2017-03-01
- Comitter:
- trevieze
- Date:
- Wed Mar 01 15:36:05 2017 +0000
- Parent:
- 5:c5f700c1e1af
- Commit message:
- Math error in GPS speed calculation from Knots to Kilometer. Should be ; 1Kn = 1.85Km
Changed in this revision
nmea.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/nmea.cpp Wed Mar 01 03:38:03 2017 +0000 +++ b/nmea.cpp Wed Mar 01 15:36:05 2017 +0000 @@ -219,7 +219,7 @@ //parse speed // The knot (pronounced not) is a unit of speed equal to one nautical mile (1.852 km) per hour res_fSpeed = string2float(tmp_words[7]); - res_fSpeed /= 1.852; // convert to km/h + res_fSpeed *= double(1.852); // convert to km/h 1knot = 1.852Km, Was res_fSpeed /= 1.852; // parse bearing res_fBearing = string2float(tmp_words[8]); // parse UTC date