ardupilot/Tools/Replay/MsgHandler_BARO.cpp

11 lines
264 B
C++
Raw Normal View History

#include "MsgHandler_BARO.h"
void MsgHandler_BARO::process_message(uint8_t *msg)
{
wait_timestamp_from_msg(msg);
baro.setHIL(0,
require_field_float(msg, "Press"),
require_field_int16_t(msg, "Temp") * 0.01f);
2015-05-15 00:19:55 -03:00
dataflash.WriteBlock(msg, f.length);
}