mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 07:44:03 -04:00
Copter: use ahrs singleton for AP_Follow and SmartRTL
This commit is contained in:
parent
3781d2f2eb
commit
ebebb3b107
@ -1003,13 +1003,13 @@ ParametersG2::ParametersG2(void)
|
||||
,afs(copter.mission, copter.barometer, copter.gps, copter.rcmap)
|
||||
#endif
|
||||
#if MODE_SMARTRTL_ENABLED == ENABLED
|
||||
,smart_rtl(copter.ahrs)
|
||||
,smart_rtl()
|
||||
#endif
|
||||
#if !HAL_MINIMIZE_FEATURES && OPTFLOW == ENABLED
|
||||
,mode_flowhold_ptr(&copter.mode_flowhold)
|
||||
#endif
|
||||
#if MODE_FOLLOW_ENABLED == ENABLED
|
||||
,follow(copter.ahrs)
|
||||
,follow()
|
||||
#endif
|
||||
{
|
||||
AP_Param::setup_object_defaults(this, var_info);
|
||||
|
Loading…
Reference in New Issue
Block a user