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.
Dependencies: BufferedSerial FatFileSystemCpp mbed
Diff: GeoPosition.h
- Revision:
- 83:f0d1d948c306
- Parent:
- 82:ee6eed2a51bd
--- a/GeoPosition.h Mon Nov 14 14:53:12 2022 +0000 +++ b/GeoPosition.h Tue Nov 15 10:28:47 2022 +0000 @@ -67,7 +67,7 @@ // Changing reference position will flag ENU as invalid if LLA or ECEF are known // If you want to manitain ENU then first call SetENU(GetENU()); // this will flag LLA and ECEF as invalid and maintain the ENU over a reference change. - // Directly changing the values of the GeoPosition being used as a reference after using it for conversions could have some weird effects. + // Changing the values of the GeoPosition being used as a reference after setting it as reference will give invalid results due to speed optimisations. void SetReferancePosition(GeoPosition *refPos); @@ -116,6 +116,11 @@ GeoPosition *referencePosition; + double sinRefLong; + double cosRefLong; + double sinRefLat; + double cosRefLat; + struct LLA llaPosition; struct ECEF ecefPosition; struct ENU enuPosition;