WindhoverLabs / airliner

7 stars 3 forks source link

RCIN app sent obsolete InputRcMsg when it received a missing header/footer data #337

Open ynielson opened 1 year ago

ynielson commented 1 year ago

When the app received a 25 bytes data from the device with missing header or footer, it sent a InputRcMsg with obsolete(previous) data without resetting. (PX4_InputRcMsg_t InputRcMsg.Values)

And in test case, "Test_RCIN_ReadDevice_Multiple_1NoHdr1NoFooter()",

  1. When the app received a 25 bytes data with missing footer, the app sent two InputRcMsg with previous data, until it found the correct data with header and footer in this case.
  2. When the app received a 25 bytes data with missing header, the app sent one InputRcMsg with previous data, until it found the correct data with header and footer in this case.