forked from RoboCup-SPL/GameController
-
Notifications
You must be signed in to change notification settings - Fork 26
SecondaryStateInfo
Olivier Michel edited this page Apr 13, 2021
·
5 revisions
The concept of secondary states allows to move during a main state to a secondary state and with the detailed secondary state information convey additional information within that sub state.
You can look at @data.spl.SPLCoachMessage for the implementation.
The below table shows which is the meaning for the additional bytes. Only Secondary Game States and
respective byte positions which convey information are listed. The others can be ignored.
Secondary Game State | Byte Position | Meaning |
---|---|---|
DIRECT_FREE_KICK | 0 | Team Number of the team performing the direct free kick |
DIRECT_FREE_KICK | 1 | Sub mode (0 for ready, 1 for freeze/ball repositioning by referee) |
INDIRECT_FREE_KICK | 0 | Team Number of the team performing the indirect free kick |
INDIRECT_FREE_KICK | 1 | Sub mode (0 for ready, 1 for freeze/ball repositioning by referee) |
PENALTY_KICK | 0 | Team Number of the team performing the penalty kick |
PENALTY_KICK | 1 | Sub mode (0 for ready, 1 for freeze/ball repositioning by referee) |
CORNER_KICK | 0 | Team Number of the team performing the penalty kick |
CORNER_KICK | 1 | Sub mode (0 for ready, 1 for freeze/ball repositioning by referee) |