ArduPlane: use mission singleton inside AP_AdvancedFailsafe

This commit is contained in:
Peter Barker 2021-07-30 22:25:41 +10:00 committed by Andrew Tridgell
parent f21cddcf0f
commit cfe25f71e3
3 changed files with 3 additions and 7 deletions

View File

@ -644,7 +644,7 @@ private:
// Outback Challenge Failsafe Support
#if ADVANCED_FAILSAFE == ENABLED
AP_AdvancedFailsafe_Plane afs {mission};
AP_AdvancedFailsafe_Plane afs;
#endif
/*

View File

@ -5,11 +5,6 @@
#include "Plane.h"
#if ADVANCED_FAILSAFE == ENABLED
// Constructor
AP_AdvancedFailsafe_Plane::AP_AdvancedFailsafe_Plane(AP_Mission &_mission) :
AP_AdvancedFailsafe(_mission)
{}
/*
setup radio_out values for all channels to termination values

View File

@ -27,7 +27,8 @@
class AP_AdvancedFailsafe_Plane : public AP_AdvancedFailsafe
{
public:
AP_AdvancedFailsafe_Plane(AP_Mission &_mission);
using AP_AdvancedFailsafe::AP_AdvancedFailsafe;
// called to set all outputs to termination state
void terminate_vehicle(void) override;