Racelogic / Mbed 2 deprecated VIPS_LTC_RAW_IMU

Dependencies:   BufferedSerial FatFileSystemCpp mbed

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;