voted_sensors_update: increase accel & gyro timeout in HIL mode

This commit is contained in:
Beat Küng 2017-03-09 11:15:01 +01:00 committed by Lorenz Meier
parent 3a737097ee
commit bc91005e7a

View File

@ -82,6 +82,11 @@ VotedSensorsUpdate::VotedSensorsUpdate(const Parameters &parameters, bool hil_en
_baro.voter.set_timeout(300000);
_mag.voter.set_timeout(300000);
_mag.voter.set_equal_value_threshold(1000);
if (_hil_enabled) { // HIL has less accurate timing so increase the timeouts a bit
_gyro.voter.set_timeout(200000);
_accel.voter.set_timeout(200000);
}
}
int VotedSensorsUpdate::init(sensor_combined_s &raw)