Browse Source

AP_InertialSensor: make HIL treat time like PX4 does

mission-4.1.18
Andrew Tridgell 11 years ago
parent
commit
3617c65af7
  1. 2
      libraries/AP_InertialSensor/AP_InertialSensor_HIL.cpp

2
libraries/AP_InertialSensor/AP_InertialSensor_HIL.cpp

@ -33,7 +33,7 @@ bool AP_InertialSensor_HIL::update( void ) { @@ -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…
Cancel
Save