AP_Periph: instantiate AP_AHRS even if not in SITL

Closes potential problem with HerePro if it calls AP_AHRS methods
This commit is contained in:
Peter Barker 2023-10-04 13:00:27 +11:00 committed by Andrew Tridgell
parent fe9932855b
commit 748dd22f4e

View File

@ -475,10 +475,10 @@ public:
#if AP_SIM_ENABLED
SITL::SIM sitl;
#endif
#if AP_AHRS_ENABLED
AP_AHRS ahrs;
#endif
#endif
};
#ifndef CAN_APP_NODE_NAME