i try to program my own tranceiver for MAVLink messages.
I started with the heatbeat messages.
I found on net a interesting side
hdr len seq sys cmp id payload (len 9)-------------------------- crc—
0 1 2 3 4 5 6 7 8 9 a b c d e f 10
FE 09 4E 01 01 00 00 00 00 00 02 03 51 04 03 1C 7F
But my CRC calculation is not correct.
I tryed severals online CRC-16/X-25 calculator but i get always other values back.
I know the first byte (0xFE) is no part of the CRC calculation.
I know for the CRC calculation we need byte 1 until byte E.
After this a EXTRA byte (for Heatbeat it is 0x50) must calculated with the resulte from Byte 1 until E to get the compleat CRC16.
Can someone say that i make wrong or where i habe a problem?
Is the sample on the linked homepage maybe wrong?