From 85ed66bd4172bc3453d41c678ce82be6ecf4bad8 Mon Sep 17 00:00:00 2001 From: Jorn Date: Mon, 27 Nov 2023 18:46:39 +0100 Subject: [PATCH] Set default value for robot command parameters --- roboteam_robothub/src/RobotHub.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/roboteam_robothub/src/RobotHub.cpp b/roboteam_robothub/src/RobotHub.cpp index 6ab22c3ef..9cdd10d24 100644 --- a/roboteam_robothub/src/RobotHub.cpp +++ b/roboteam_robothub/src/RobotHub.cpp @@ -123,7 +123,11 @@ void RobotHub::sendCommandsToBasestation(const rtt::RobotCommands &commands, rtt command.header = REM_PACKET_TYPE_REM_ROBOT_COMMAND; command.toRobotId = robotCommand.id; command.toColor = color == rtt::Team::BLUE; - command.fromBS = true; + command.fromBS = false; + command.fromPC = true; + command.toPC = false; + command.toBS = false; + command.toBC = false; command.remVersion = REM_LOCAL_VERSION; // command.messageId = 0; TODO implement incrementing message id command.payloadSize = REM_PACKET_SIZE_REM_ROBOT_COMMAND;