start odo

This commit is contained in:
acki
2025-05-28 18:17:29 -04:00
parent 9d281cbfb7
commit 6c592afe2b

View File

@@ -175,8 +175,11 @@ namespace Modelec
"odometry/start", 10,
[this](const std_msgs::msg::Bool::SharedPtr msg)
{
start_odo_ = msg->data;
SendOrder("START", {std::to_string(msg->data)});
if (msg->data != start_odo_)
{
start_odo_ = msg->data;
SendOrder("START", {std::to_string(msg->data)});
}
});
}