Browse Source

Plane: remove get_advanced_failsafe override; singleton to be used

master
Peter Barker 5 years ago committed by Andrew Tridgell
parent
commit
a761cb62de
  1. 9
      ArduPlane/GCS_Mavlink.cpp
  2. 2
      ArduPlane/GCS_Mavlink.h

9
ArduPlane/GCS_Mavlink.cpp

@ -1385,15 +1385,6 @@ void GCS_MAVLINK_Plane::handle_mission_set_current(AP_Mission &mission, const ma @@ -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
*/

2
ArduPlane/GCS_Mavlink.h

@ -16,8 +16,6 @@ protected: @@ -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;

Loading…
Cancel
Save