Commit c420ddfa authored by none's avatar none

Tinker with the NOP message so that the receiver is happy with it.

parent 5168cacd
......@@ -60,11 +60,12 @@ void QGCUASFileManager::nothingMessage()
{
mavlink_message_t message;
unsigned crcstate = 0;
RequestHeader hdr;
hdr.magic = 9;
crcstate = crc32((uint8_t*)&hdr, 4, crcstate);
hdr.crc32 = crcstate;
hdr.magic = 'f';
hdr.session = 0;
hdr.crc32 = 0;
hdr.size = 0;
hdr.crc32 = crc32((uint8_t*)&hdr, sizeof(hdr) + hdr.size, 0);
mavlink_msg_encapsulated_data_pack(250, 0, &message, _encdata_seq, (uint8_t*)&hdr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment