Rover: honor the FS_GCS_ENABLE parameter

GCS failsafe was always enabled
This commit is contained in:
Andrew Tridgell 2013-09-16 08:23:21 +10:00
parent d16587340d
commit df66dc1889

View File

@ -690,8 +690,10 @@ static void mount_update(void)
*/
static void failsafe_check(void)
{
if (g.fs_gcs_enable) {
failsafe_trigger(FAILSAFE_EVENT_GCS, last_heartbeat_ms != 0 && (millis() - last_heartbeat_ms) > 2000);
}
}
/*
if the compass is enabled then try to accumulate a reading