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:
- 4:6cd904bff1bd
- Parent:
- 3:14d241e29be3
- Child:
- 6:61274e214f46
--- a/main.cpp Thu Jan 28 15:13:05 2021 +0000
+++ b/main.cpp Fri Jan 29 14:50:21 2021 +0000
@@ -56,12 +56,6 @@
float remainingClockError;
bool ppmCorrection;
-struct FIZData_s {
- uint32_t focus;
- uint16_t iris;
- uint16_t zoom;
-};
-
struct outputFormat_s {
uint32_t header; // 2 byte header + 2 byte length
uint32_t mask;
@@ -80,7 +74,6 @@
} __attribute__((packed)) ;
struct outputFormat_s packetOut;
-struct FIZData_s lastFiz;
void prepPacketOut()
{
@@ -107,15 +100,9 @@
packetOut.pitch = posPtr->pitch;
packetOut.yaw = posPtr->yaw;
packetOut.accuracy[3] = posPtr->ID;
- packetOut.focus = lastFiz.focus;
- packetOut.iris = lastFiz.iris;
- packetOut.zoom = lastFiz.zoom;
- FIZPort.getMostRecent(& packetOut.focus, & packetOut.iris,&packetOut.zoom);
+ FIZPort.getMostRecent(&packetOut.focus, &packetOut.iris, &packetOut.zoom);
VIPSSerial::getCRC((void *)&packetOut, sizeof(struct outputFormat_s)-2, (void *)&packetOut.checksum);
-// COM1.printf("send\r\n");
COM1.write(&packetOut, sizeof(struct outputFormat_s));
-// COM3.write(&packetOut, sizeof(struct outputFormat_s));
-// printf("send\r\n");
}
}