Rover: remove get_advanced_failsafe override; singleton to be used

This commit is contained in:
Peter Barker 2019-09-14 14:38:16 +10:00 committed by Andrew Tridgell
parent 57dc253be8
commit 0d7db0bbfe
2 changed files with 0 additions and 11 deletions

View File

@ -1093,15 +1093,6 @@ void Rover::mavlink_delay_cb()
logger.EnableWrites(true);
}
AP_AdvancedFailsafe *GCS_MAVLINK_Rover::get_advanced_failsafe() const
{
#if ADVANCED_FAILSAFE == ENABLED
return &rover.g2.afs;
#else
return nullptr;
#endif
}
bool GCS_MAVLINK_Rover::set_mode(const uint8_t mode)
{
Mode *new_mode = rover.mode_from_mode_num((enum Mode::Number)mode);

View File

@ -12,8 +12,6 @@ protected:
uint32_t telem_delay() const override;
AP_AdvancedFailsafe *get_advanced_failsafe() const override;
uint8_t sysid_my_gcs() const override;
bool sysid_enforce() const override;