mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-24 00:33:56 -04:00
AP_InertialSensor: make HIL treat time like PX4 does
This commit is contained in:
parent
77c4968342
commit
3617c65af7
@ -33,7 +33,7 @@ bool AP_InertialSensor_HIL::update( void ) {
|
||||
}
|
||||
|
||||
float AP_InertialSensor_HIL::get_delta_time() const {
|
||||
return _delta_time_usec * 1.0e-6;
|
||||
return _sample_period_ms * 0.001f;
|
||||
}
|
||||
|
||||
float AP_InertialSensor_HIL::get_gyro_drift_rate(void) {
|
||||
|
Loading…
Reference in New Issue
Block a user