Plane: remove get_advanced_failsafe override; singleton to be used

This commit is contained in:
Peter Barker 2019-09-14 14:38:30 +10:00 committed by Andrew Tridgell
parent 1b29cf14a6
commit a761cb62de
2 changed files with 0 additions and 11 deletions

View File

@ -1385,15 +1385,6 @@ void GCS_MAVLINK_Plane::handle_mission_set_current(AP_Mission &mission, const ma
}
}
AP_AdvancedFailsafe *GCS_MAVLINK_Plane::get_advanced_failsafe() const
{
#if ADVANCED_FAILSAFE == ENABLED
return &plane.afs;
#else
return nullptr;
#endif
}
/*
set_mode() wrapper for MAVLink SET_MODE
*/

View File

@ -16,8 +16,6 @@ protected:
void handle_mission_set_current(AP_Mission &mission, const mavlink_message_t &msg) override;
AP_AdvancedFailsafe *get_advanced_failsafe() const override;
uint8_t sysid_my_gcs() const override;
bool sysid_enforce() const override;