AP_AHRS: fixed AP_MODULE_SUPPORTED

This commit is contained in:
Andrew Tridgell 2018-02-10 10:09:09 +11:00
parent d5be04dc8f
commit 55358459c7
1 changed files with 2 additions and 0 deletions

View File

@ -106,8 +106,10 @@ void AP_AHRS_NavEKF::update(bool skip_ins_update)
update_EKF2();
}
#if AP_MODULE_SUPPORTED
// call AHRS_update hook if any
AP_Module::call_hook_AHRS_update(*this);
#endif
// push gyros if optical flow present
if (hal.opticalflow) {