From 7a6a09f1a1061b371c3359a94e3c30e63237d843 Mon Sep 17 00:00:00 2001 From: Roman Date: Thu, 10 Mar 2016 08:21:05 +0100 Subject: [PATCH] ekf2_replay: support parsing a uint32_t --- src/modules/ekf2_replay/ekf2_replay_main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/modules/ekf2_replay/ekf2_replay_main.cpp b/src/modules/ekf2_replay/ekf2_replay_main.cpp index b4f4ecc6bf..41e40ebb77 100644 --- a/src/modules/ekf2_replay/ekf2_replay_main.cpp +++ b/src/modules/ekf2_replay/ekf2_replay_main.cpp @@ -296,6 +296,11 @@ void Ekf2Replay::parseMessage(uint8_t *source, uint8_t *destination, uint8_t typ write_index += sizeof(uint8_t); break; + case 'I': + memcpy(&destination[write_index], &source[write_index], sizeof(int32_t)); + write_index += sizeof(int32_t); + break; + default: PX4_WARN("found unsupported data type in replay message, exiting!"); _task_should_exit = true;