AP_HAL_SITL: remove checks for HAL_BOARD_APM2 and HAL_BOARD_APM1

This commit is contained in:
Lucas De Marchi 2015-11-03 11:46:29 -02:00 committed by Andrew Tridgell
parent 8e65e88d06
commit cf8203c08b
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;