diff --git a/ArduPlane/Plane.h b/ArduPlane/Plane.h index 4bda3e7b17..5d56f7e004 100644 --- a/ArduPlane/Plane.h +++ b/ArduPlane/Plane.h @@ -674,7 +674,7 @@ private: // Outback Challenge Failsafe Support #if ADVANCED_FAILSAFE == ENABLED - AP_AdvancedFailsafe_Plane afs {mission, gps}; + AP_AdvancedFailsafe_Plane afs {mission}; #endif /* diff --git a/ArduPlane/afs_plane.cpp b/ArduPlane/afs_plane.cpp index 0943166a1d..8fbee726a3 100644 --- a/ArduPlane/afs_plane.cpp +++ b/ArduPlane/afs_plane.cpp @@ -6,8 +6,8 @@ #if ADVANCED_FAILSAFE == ENABLED // Constructor -AP_AdvancedFailsafe_Plane::AP_AdvancedFailsafe_Plane(AP_Mission &_mission, const AP_GPS &_gps) : - AP_AdvancedFailsafe(_mission, _gps) +AP_AdvancedFailsafe_Plane::AP_AdvancedFailsafe_Plane(AP_Mission &_mission) : + AP_AdvancedFailsafe(_mission) {} diff --git a/ArduPlane/afs_plane.h b/ArduPlane/afs_plane.h index 98053aff3b..dda3fd7953 100644 --- a/ArduPlane/afs_plane.h +++ b/ArduPlane/afs_plane.h @@ -27,7 +27,7 @@ class AP_AdvancedFailsafe_Plane : public AP_AdvancedFailsafe { public: - AP_AdvancedFailsafe_Plane(AP_Mission &_mission, const AP_GPS &_gps); + AP_AdvancedFailsafe_Plane(AP_Mission &_mission); // called to set all outputs to termination state void terminate_vehicle(void) override;