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: main.cpp
- Revision:
- 6:61274e214f46
- Parent:
- 4:6cd904bff1bd
- Child:
- 7:87aea27cc68b
diff -r 7994913a15fe -r 61274e214f46 main.cpp
--- 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));
}