mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-12-03 15:00:47 +08:00
fix(commander): Remove COM_OBC_LOSS_T (#27261)
hardcoding the default 5 second timeout.
This commit is contained in:
1 parent
800ebfed5c
commit
5e86be131c
5 files changed
+1
-18
No files matched your search
@@ -2976,7 +2976,7 @@ void Commander::dataLinkCheck()
|
||||
|
||||
// ONBOARD CONTROLLER data link loss failsafe
|
||||
if ((_datalink_last_heartbeat_onboard_controller > 0)
|
||||
&& (hrt_elapsed_time(&_datalink_last_heartbeat_onboard_controller) > (_param_com_obc_loss_t.get() * 1_s))
|
||||
&& (hrt_elapsed_time(&_datalink_last_heartbeat_onboard_controller) > 5_s)
|
||||
&& !_onboard_controller_lost) {
|
||||
|
||||
mavlink_log_critical(&_mavlink_log_pub, "Connection to mission computer lost\t");
|
||||
|
||||
Reference in new issue
Block a user