mirror of https://github.com/ArduPilot/ardupilot
ArduPlane: use mission singleton inside AP_AdvancedFailsafe
This commit is contained in:
parent
f21cddcf0f
commit
cfe25f71e3
|
@ -644,7 +644,7 @@ private:
|
||||||
|
|
||||||
// Outback Challenge Failsafe Support
|
// Outback Challenge Failsafe Support
|
||||||
#if ADVANCED_FAILSAFE == ENABLED
|
#if ADVANCED_FAILSAFE == ENABLED
|
||||||
AP_AdvancedFailsafe_Plane afs {mission};
|
AP_AdvancedFailsafe_Plane afs;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -5,11 +5,6 @@
|
||||||
#include "Plane.h"
|
#include "Plane.h"
|
||||||
|
|
||||||
#if ADVANCED_FAILSAFE == ENABLED
|
#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
|
setup radio_out values for all channels to termination values
|
||||||
|
|
|
@ -27,7 +27,8 @@
|
||||||
class AP_AdvancedFailsafe_Plane : public AP_AdvancedFailsafe
|
class AP_AdvancedFailsafe_Plane : public AP_AdvancedFailsafe
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
AP_AdvancedFailsafe_Plane(AP_Mission &_mission);
|
|
||||||
|
using AP_AdvancedFailsafe::AP_AdvancedFailsafe;
|
||||||
|
|
||||||
// called to set all outputs to termination state
|
// called to set all outputs to termination state
|
||||||
void terminate_vehicle(void) override;
|
void terminate_vehicle(void) override;
|
||||||
|
|
Loading…
Reference in New Issue