mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-22 11:47:35 +08:00
voted_senors_update: remove memset 0 initializations because of zero initializer in header
This commit is contained in:
committed by
Daniel Agar
parent
185e2811dc
commit
b8f70e865c
@@ -55,18 +55,6 @@ using namespace matrix;
|
||||
VotedSensorsUpdate::VotedSensorsUpdate(const Parameters ¶meters, bool hil_enabled)
|
||||
: _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));
|
||||
memset(&_mag_angle_diff, 0, sizeof(_mag_angle_diff));
|
||||
|
||||
// initialise the publication variables
|
||||
memset(&_corrections, 0, sizeof(_corrections));
|
||||
memset(&_info, 0, sizeof(_info));
|
||||
|
||||
for (unsigned i = 0; i < 3; i++) {
|
||||
_corrections.gyro_scale_0[i] = 1.0f;
|
||||
_corrections.accel_scale_0[i] = 1.0f;
|
||||
|
||||
Reference in New Issue
Block a user