From c420ddfa55af2e452a79c91afdcbbb2b0df4eb9a Mon Sep 17 00:00:00 2001 From: none Date: Mon, 5 May 2014 23:20:58 -0700 Subject: [PATCH] Tinker with the NOP message so that the receiver is happy with it. --- src/uas/QGCUASFileManager.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/uas/QGCUASFileManager.cc b/src/uas/QGCUASFileManager.cc index 603411739..9e590995b 100644 --- a/src/uas/QGCUASFileManager.cc +++ b/src/uas/QGCUASFileManager.cc @@ -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); -- 2.22.0