forked from Archive/PX4-Autopilot
voted_sensors_update: initialize _last_magnetometer & _last_airdata
This commit is contained in:
parent
20f2303e8a
commit
f241e49ebf
|
@ -54,6 +54,8 @@ VotedSensorsUpdate::VotedSensorsUpdate(const Parameters ¶meters, bool hil_en
|
|||
: _parameters(parameters), _hil_enabled(hil_enabled)
|
||||
{
|
||||
memset(&_last_sensor_data, 0, sizeof(_last_sensor_data));
|
||||
memset(&_last_magnetometer, 0, sizeof(_last_magnetometer));
|
||||
memset(&_last_airdata, 0, sizeof(_last_airdata));
|
||||
memset(&_last_accel_timestamp, 0, sizeof(_last_accel_timestamp));
|
||||
memset(&_accel_diff, 0, sizeof(_accel_diff));
|
||||
memset(&_gyro_diff, 0, sizeof(_gyro_diff));
|
||||
|
|
Loading…
Reference in New Issue