I messed up the merge, so pushing it over to another repo so I don't lose it. Will tidy up and remove later
Dependencies: BufferedSerial FatFileSystemCpp mbed
Diff: VIPSSerialProtocol.h
- Revision:
- 14:76083dc18b0d
- Parent:
- 3:14d241e29be3
- Child:
- 16:a8d3a0dbe4bf
--- a/VIPSSerialProtocol.h Mon Feb 22 10:44:27 2021 +0000 +++ b/VIPSSerialProtocol.h Thu Feb 25 17:54:04 2021 +0000 @@ -12,7 +12,6 @@ public: VIPSSerial(const PinName Tx, const PinName Rx); - int getStatusMessage() {int tmp=statusMessage; statusMessage=0; return tmp;} void run(void); // send all position outputs rather than just when requested. @@ -49,6 +48,8 @@ #define posHistoryLen 3 struct posAndTime_s lastPositions[posHistoryLen]; int nextPosition; + struct posAndTime_s lastPos; // the most recent position received + struct posAndTime_s prevPos; // the most last but one position received position outputPosition; position *outputPtr;