add another crc to make sure we don't get corrupt data

This commit is contained in:
2025-04-27 02:22:55 +02:00
parent 0f2850dfca
commit 3cd643f5da
2 changed files with 18 additions and 1 deletions

View File

@@ -19,6 +19,7 @@ typedef struct __attribute__((packed))
uint32_t packetIndex;
uint8_t packetType;
uint32_t missionTimer;
uint32_t CRCCheck;
} DownBoundPacket;
typedef struct __attribute__((packed))
@@ -90,6 +91,8 @@ typedef struct __attribute__((packed))
int16_t currentServoB;
int16_t targetServoB;
uint8_t telemetryIndex;
} TelemetryPacket;
typedef struct __attribute__((packed))
@@ -97,6 +100,7 @@ typedef struct __attribute__((packed))
char syncPhrase[10];
uint32_t packetIndex;
uint8_t packetType;
uint32_t CRCCheck;
} UplinkPacket;
typedef struct __attribute__((packed))