Racelogic / Mbed 2 deprecated VIPS_LTC_RAW_IMU

Dependencies:   BufferedSerial FatFileSystemCpp mbed

Revision:
6:61274e214f46
Parent:
4:6cd904bff1bd
Child:
7:87aea27cc68b
--- a/main.cpp	Mon Feb 01 17:29:57 2021 +0000
+++ b/main.cpp	Tue Feb 09 16:55:52 2021 +0000
@@ -100,10 +100,19 @@
         packetOut.pitch = posPtr->pitch;
         packetOut.yaw = posPtr->yaw;
         packetOut.accuracy[3] = posPtr->ID;
-        FIZPort.getMostRecent(&packetOut.focus, &packetOut.iris, &packetOut.zoom);
-        VIPSSerial::getCRC((void *)&packetOut, sizeof(struct outputFormat_s)-2, (void *)&packetOut.checksum);
-        COM1.write(&packetOut, sizeof(struct outputFormat_s));
+    } else {
+        packetOut.time = 0;
+        packetOut.x = 0;
+        packetOut.y = 0;
+        packetOut.z = 0;
+        packetOut.roll = 0;
+        packetOut.pitch = 0;
+        packetOut.yaw = 0;
+        packetOut.accuracy[3] = 0;
     }
+    FIZPort.getMostRecent(&packetOut.focus, &packetOut.iris, &packetOut.zoom);
+    VIPSSerial::getCRC((void *)&packetOut, sizeof(struct outputFormat_s)-2, (void *)&packetOut.checksum);
+    COM1.write(&packetOut, sizeof(struct outputFormat_s));
 }