Skip to content

Commit

Permalink
Set default value for robot command parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
JornJorn committed Nov 27, 2023
1 parent c5a4b0f commit 85ed66b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion roboteam_robothub/src/RobotHub.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 85ed66b

Please sign in to comment.