AP_HAL_SITL: remove checks for HAL_BOARD_APM2 and HAL_BOARD_APM1
This commit is contained in:
parent
8e65e88d06
commit
cf8203c08b
@ -43,7 +43,7 @@ void SITL_State::_update_barometer(float altitude)
|
||||
return;
|
||||
}
|
||||
|
||||
// 80Hz, to match the real APM2 barometer
|
||||
// 80Hz
|
||||
uint32_t now = hal.scheduler->millis();
|
||||
if ((now - last_update) < 12) {
|
||||
return;
|
||||
|
@ -47,7 +47,7 @@ void SITL_State::_update_compass(float rollDeg, float pitchDeg, float yawDeg)
|
||||
Vector3f motor = _sitl->mag_mot.get() * _current;
|
||||
Vector3f new_mag_data = _compass->getHIL(0) + noise + motor;
|
||||
|
||||
// 100Hz, to match the real APM2 compass
|
||||
// 100Hz
|
||||
uint32_t now = hal.scheduler->millis();
|
||||
if ((now - last_update) < 10) {
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user