AP_Vehicle: fix periph-heavy compile errors when INS is disabled

This commit is contained in:
Tom Pittenger 2021-09-20 14:32:59 -07:00 committed by Tom Pittenger
parent fcfaab4beb
commit de753f386c
1 changed files with 2 additions and 0 deletions

View File

@ -440,6 +440,7 @@ void AP_Vehicle::get_osd_roll_pitch_rad(float &roll, float &pitch) const
*/
void AP_Vehicle::accel_cal_update()
{
#if HAL_INS_ENABLED
if (hal.util->get_soft_armed()) {
return;
}
@ -457,6 +458,7 @@ void AP_Vehicle::accel_cal_update()
hal.scheduler->reboot(false);
}
#endif
#endif // HAL_INS_ENABLED
}