AP_AdvancedFailsafe: GCS_MAVLink takes care of mavlink capabilities

This commit is contained in:
Peter Barker 2018-03-29 12:31:23 +11:00 committed by Peter Barker
parent 1b4a2c4d6b
commit d250442e68
2 changed files with 2 additions and 2 deletions

View File

@ -156,8 +156,6 @@ AP_AdvancedFailsafe::check(uint32_t last_heartbeat_ms, bool geofence_breached, u
if (!_enable) {
return;
}
// only set the termination capability, clearing it can mess up copter and sub which can always be terminated
hal.util->set_capabilities(MAV_PROTOCOL_CAPABILITY_FLIGHT_TERMINATION);
// we always check for fence breach
if(_enable_geofence_fs) {

View File

@ -65,6 +65,8 @@ public:
_saved_wp = 0;
}
bool enabled() { return _enable; }
// check that everything is OK
void check(uint32_t last_heartbeat_ms, bool geofence_breached, uint32_t last_valid_rc_ms);