Browse Source

Commander: reset print once variable if OA is lost.

Signed-off-by: Claudio Micheli <claudio@auterion.com>
sbg
Claudio Micheli 6 years ago committed by Julian Oes
parent
commit
d937a5725b
  1. 1
      src/modules/commander/Commander.cpp

1
src/modules/commander/Commander.cpp

@ -3981,6 +3981,7 @@ void Commander::data_link_check(bool &status_changed) @@ -3981,6 +3981,7 @@ void Commander::data_link_check(bool &status_changed)
_avoidance_system_lost = true;
mavlink_log_critical(&mavlink_log_pub, "Avoidance system lost");
status_flags.avoidance_system_valid = false;
print_msg_once = false;
}
//if status changed

Loading…
Cancel
Save