Skip to content

Commit

Permalink
Merge pull request #105 from RoboTeamTwente/fix-for-unhandled-basesta…
Browse files Browse the repository at this point in the history
…tion-message-34

Set default value for robot command parameters
  • Loading branch information
luukieboy authored Nov 27, 2023
2 parents c5a4b0f + 85ed66b commit 66f6f9a
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 66f6f9a

Please sign in to comment.