Racelogic / Mbed 2 deprecated VIPS_LTC_RAW_IMU

Dependencies:   BufferedSerial FatFileSystemCpp mbed

Revision:
66:066b16c6c34f
Parent:
57:ba6f516d93b9
Child:
69:47f800793d00
--- a/VIPSSerialProtocol.cpp	Thu Nov 11 21:11:08 2021 +0000
+++ b/VIPSSerialProtocol.cpp	Tue Nov 16 19:01:34 2021 +0000
@@ -28,7 +28,7 @@
 
     queueLen = 0;
 
-    SmoothBy = 500;
+    SmoothBy = 100; //was 500
     XSmoothTotal = 0;
     YSmoothTotal = 0;
     ZSmoothTotal = 0;
@@ -355,7 +355,7 @@
         if ( ( ( testValue & 0x400) == 0x400) && (!hyperSmoothEnabled)) {
             EnableSmoothing(true);
             //pc.write("Auto HS On\r\n", 12);
-        } else if ( ( ( testValue & 0x400) != 0x400) && (hyperSmoothEnabled)) {
+        } else if ( ( ( testValue & 0x400) != 0x400) && (hyperSmoothEnabled) && (!forcedHyperSmooth)) {
             EnableSmoothing(false);
             //pc.write("Auto HS Off\r\n", 13);
         } //Auto Hypersmooth