mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-07 09:13:32 +08:00
ekf2_replay: Fix bug in replay message format handling
This commit is contained in:
committed by
Lorenz Meier
parent
a46b924d8c
commit
4b3aab2767
@@ -302,6 +302,11 @@ void Ekf2Replay::parseMessage(uint8_t *source, uint8_t *destination, uint8_t typ
|
||||
break;
|
||||
|
||||
case 'I':
|
||||
memcpy(&destination[write_index], &source[write_index], sizeof(uint32_t));
|
||||
write_index += sizeof(uint32_t);
|
||||
break;
|
||||
|
||||
case 'i':
|
||||
memcpy(&destination[write_index], &source[write_index], sizeof(int32_t));
|
||||
write_index += sizeof(int32_t);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user