simplified message handling, switch from XOR checksum to CRC8 with polynomial 0x97.
0x97 allows for detection of all 1-3 bit errors in a message of up to 119 bytes (see https://www.faa.gov/aircraft/air_cert/design_approvals/air_software/media/TC-14-49.pdf)
This commit is contained in:
@@ -18,14 +18,6 @@
|
||||
|
||||
|
||||
|
||||
#define AQH_MSG_OFFS_VALUE2_TIMESTAMP 0
|
||||
#define AQH_MSG_OFFS_VALUE2_VALUEID 4
|
||||
#define AQH_MSG_OFFS_VALUE2_VALUETYPE 5
|
||||
#define AQH_MSG_OFFS_VALUE2_VALUE 6
|
||||
#define AQH_MSG_OFFS_VALUE2_DENOM 8
|
||||
|
||||
#define AQH_MSG_VALUE2_MINSIZE (AQH_MSG_OFFS_ALL_DATA_BEGIN+AQH_MSG_OFFS_VALUE2_DENOM+2)
|
||||
|
||||
#define AQH_MSG_VALUE2_TYPE_TEMP 1
|
||||
#define AQH_MSG_VALUE2_TYPE_HUMIDITY 2
|
||||
|
||||
|
||||
Reference in New Issue
Block a user