Skip to content

GameControlReturnData

MaikePaetzel edited this page May 3, 2021 · 5 revisions

GameControlReturnData

This is the package that needs to be send by the robot to appear in the Game Controller.

C-Type Bytes Identifier Explanation
char[4] 4 Header A String that is considered the Header 'RGrt'
uint8_t 1 Protocol Version Identifying the Version of the Protocol
uint8_t 1 team The unique team number of the player
uint8_t 1 player The unique player number of the player
uint8_t 1 message The message that the player says (allowed values see below).

Message

Byte value Human Readable Explanation
0 Manual Penalized
1 Manual Unpenalized
2 Alive Message used for visualizing the connection status of a player in the GameController UI
3 Goalkeeper The current player can request to become the goalkeeper with this message. It will only have an effect during a stoppage of a game, otherwise it is ignored by the GameContrller
4 Ready to execute game interruption Any player from the team that is currently preparing to take a free kick, throw in, corner kick, goal kick or penalty kick can send this message during the preparation phase to indicate that the team is ready to move to the execute stage. If the message is sent after less than 15 seconds have passed in the preparation phase, the message is ignored by the GameController.