From 1d379dd0b388e62bf85845b112e554fd942655e4 Mon Sep 17 00:00:00 2001 From: Michael du Breuil Date: Thu, 13 Jun 2019 20:13:55 -0700 Subject: [PATCH] Plane: Update for AFS interface --- ArduPlane/Plane.h | 2 +- ArduPlane/afs_plane.cpp | 4 ++-- ArduPlane/afs_plane.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) 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;