Copter: remove rcmap member from AP_AdvancedFailsafe

This commit is contained in:
Peter Barker 2018-05-05 18:24:07 +10:00 committed by Randy Mackay
parent f8711f70c9
commit dc61884303
3 changed files with 4 additions and 4 deletions

View File

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

View File

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

View File

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