mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-09 09:28:31 -04:00
AP_Vehicle: fix periph-heavy compile errors when INS is disabled
This commit is contained in:
parent
fcfaab4beb
commit
de753f386c
@ -440,6 +440,7 @@ void AP_Vehicle::get_osd_roll_pitch_rad(float &roll, float &pitch) const
|
|||||||
*/
|
*/
|
||||||
void AP_Vehicle::accel_cal_update()
|
void AP_Vehicle::accel_cal_update()
|
||||||
{
|
{
|
||||||
|
#if HAL_INS_ENABLED
|
||||||
if (hal.util->get_soft_armed()) {
|
if (hal.util->get_soft_armed()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -457,6 +458,7 @@ void AP_Vehicle::accel_cal_update()
|
|||||||
hal.scheduler->reboot(false);
|
hal.scheduler->reboot(false);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#endif // HAL_INS_ENABLED
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user