Browse Source

Sub: add log entry if depth sensor failure is resolved

master
Peter Barker 6 years ago committed by Jacob Walser
parent
commit
e3561f7204
  1. 5
      ArduSub/failsafe.cpp

5
ArduSub/failsafe.cpp

@ -73,7 +73,10 @@ void Sub::failsafe_sensors_check() @@ -73,7 +73,10 @@ void Sub::failsafe_sensors_check()
// We need a depth sensor to do any sort of auto z control
if (sensor_health.depth) {
failsafe.sensor_health = false;
if (failsafe.sensor_health) {
AP::logger().Write_Error(LogErrorSubsystem::FAILSAFE_SENSORS, LogErrorCode::ERROR_RESOLVED);
failsafe.sensor_health = false;
}
return;
}

Loading…
Cancel
Save