Browse Source

ekf2_replay: support parsing a uint32_t

sbg
Roman 9 years ago committed by Lorenz Meier
parent
commit
7a6a09f1a1
  1. 5
      src/modules/ekf2_replay/ekf2_replay_main.cpp

5
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); write_index += sizeof(uint8_t);
break; break;
case 'I':
memcpy(&destination[write_index], &source[write_index], sizeof(int32_t));
write_index += sizeof(int32_t);
break;
default: default:
PX4_WARN("found unsupported data type in replay message, exiting!"); PX4_WARN("found unsupported data type in replay message, exiting!");
_task_should_exit = true; _task_should_exit = true;

Loading…
Cancel
Save