调整优先级
This commit is contained in:
parent
cf5a698eb9
commit
d5b01517a0
@ -64,12 +64,7 @@ private:
|
||||
RCLCPP_INFO_THROTTLE(this->get_logger(), *this->get_clock(), 2000, "[ARBITER] Using RADIO control");
|
||||
return;
|
||||
}
|
||||
if (auto_valid_ && (now - auto_last_time_).nanoseconds() < timeout_ms_ * 1000000)
|
||||
{
|
||||
publisher_->publish(auto_msg_);
|
||||
RCLCPP_INFO_THROTTLE(this->get_logger(), *this->get_clock(), 2000, "[ARBITER] Using AUTO control");
|
||||
return;
|
||||
}
|
||||
|
||||
if (remote_valid_ && (now - remote_last_time_).nanoseconds() < timeout_ms_ * 1000000)
|
||||
{
|
||||
publisher_->publish(remote_msg_);
|
||||
@ -77,6 +72,13 @@ private:
|
||||
return;
|
||||
}
|
||||
|
||||
if (auto_valid_ && (now - auto_last_time_).nanoseconds() < timeout_ms_ * 1000000)
|
||||
{
|
||||
publisher_->publish(auto_msg_);
|
||||
RCLCPP_INFO_THROTTLE(this->get_logger(), *this->get_clock(), 2000, "[ARBITER] Using AUTO control");
|
||||
return;
|
||||
}
|
||||
|
||||
// 所有控制源均失联,发布安全默认指令
|
||||
sweeperMsg::McCtrl safe_msg;
|
||||
safe_msg.brake = 1;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user