24 #ifndef __TOOLS_REFBOXREP_SPL_H_
25 #define __TOOLS_REFBOXREP_SPL_H_
27 #include "processor.h"
28 #include <netcomm/worldinfo/enums.h>
39 #define SPL_HEADER_SIZE 4
40 #define SPL_MAX_NUM_PLAYERS 11
64 char header[SPL_HEADER_SIZE];
82 unsigned int team_number,
unsigned int player_number);
100 uint8_t __team_number;
101 uint8_t __player_number;
uint32_t secs_remaining
estimate of number of seconds remaining in the half
uint8_t first_half
1 = game in first half, 0 otherwise
uint8_t players_per_team
The number of players on a team.
SPL RefBox protocol team info struct.
Fawkes library namespace.
uint8_t goal_color
colour of the goal
uint32_t version
version of the data structure
SPL RefBox protocol robot info struct.
uint8_t drop_in_team
team that caused last drop in
uint8_t secondary_state
Extra state information - (STATE2_NORMAL, STATE2_PENALTYSHOOT, etc)
SplRefBoxProcessor(fawkes::Logger *logger, unsigned short int broadcast_port, unsigned int team_number, unsigned int player_number)
Constructor.
uint8_t score
team's score
uint16_t drop_in_time
number of seconds passed since the last drop in.
Referee Box Communication Processor.
SPL RefBox protocol game control struct.
uint8_t state
state of the game (STATE_READY, STATE_PLAYING, etc.)
uint8_t team_number
unique team number
uint16_t penalty
penalty state of the player
~SplRefBoxProcessor()
Destructor.
uint8_t kick_off_team
the next team to kick off
bool check_connection()
Check if the connection is alive and reconnect.
void refbox_process()
Process incoming refbox communication.
uint16_t secs_till_unpenalized
estimate of time till unpenalised
uint8_t team_color
colour of the team
SPL league refbox repeater.