Copter: Update for AFS interface

This commit is contained in:
Michael du Breuil 2019-06-13 20:14:06 -07:00 committed by Andrew Tridgell
parent 1d379dd0b3
commit bd904f890f
3 changed files with 4 additions and 4 deletions

View File

@ -984,7 +984,7 @@ ParametersG2::ParametersG2(void)
, proximity(copter.serial_manager) , proximity(copter.serial_manager)
#endif #endif
#if ADVANCED_FAILSAFE == ENABLED #if ADVANCED_FAILSAFE == ENABLED
,afs(copter.mode_auto.mission, copter.gps) ,afs(copter.mode_auto.mission)
#endif #endif
#if MODE_SMARTRTL_ENABLED == ENABLED #if MODE_SMARTRTL_ENABLED == ENABLED
,smart_rtl() ,smart_rtl()

View File

@ -7,8 +7,8 @@
#if ADVANCED_FAILSAFE == ENABLED #if ADVANCED_FAILSAFE == ENABLED
// Constructor // Constructor
AP_AdvancedFailsafe_Copter::AP_AdvancedFailsafe_Copter(AP_Mission &_mission, const AP_GPS &_gps) : AP_AdvancedFailsafe_Copter::AP_AdvancedFailsafe_Copter(AP_Mission &_mission) :
AP_AdvancedFailsafe(_mission, _gps) AP_AdvancedFailsafe(_mission)
{} {}

View File

@ -27,7 +27,7 @@
class AP_AdvancedFailsafe_Copter : public AP_AdvancedFailsafe class AP_AdvancedFailsafe_Copter : public AP_AdvancedFailsafe
{ {
public: public:
AP_AdvancedFailsafe_Copter(AP_Mission &_mission, const AP_GPS &_gps); AP_AdvancedFailsafe_Copter(AP_Mission &_mission);
// called to set all outputs to termination state // called to set all outputs to termination state
void terminate_vehicle(void); void terminate_vehicle(void);