mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 07:44:03 -04:00
AP_Vehicle: compile with AHRS not available
This commit is contained in:
parent
e7ded62763
commit
185396ee27
@ -922,8 +922,13 @@ void AP_Vehicle::publish_osd_info()
|
||||
|
||||
void AP_Vehicle::get_osd_roll_pitch_rad(float &roll, float &pitch) const
|
||||
{
|
||||
#if AP_AHRS_ENABLED
|
||||
roll = ahrs.get_roll();
|
||||
pitch = ahrs.get_pitch();
|
||||
#else
|
||||
roll = 0.0;
|
||||
pitch = 0.0;
|
||||
#endif
|
||||
}
|
||||
|
||||
#if HAL_INS_ACCELCAL_ENABLED
|
||||
|
@ -344,8 +344,10 @@ protected:
|
||||
// false disables external leds)
|
||||
AP_Notify notify;
|
||||
|
||||
#if AP_AHRS_ENABLED
|
||||
// Inertial Navigation EKF
|
||||
AP_AHRS ahrs;
|
||||
#endif
|
||||
|
||||
#if HAL_HOTT_TELEM_ENABLED
|
||||
AP_Hott_Telem hott_telem;
|
||||
|
Loading…
Reference in New Issue
Block a user