Function tap::communication::serial::getRobotClientID

Function Documentation

static uint16_t tap::communication::serial::getRobotClientID(RefSerialTransmitter::RobotId robotId)

Given RobotId, returns the client_id that the referee system uses to display the received messages to the given client_id robot.

Todo:

general send() method which acquires semaphore and does uart write?

Parameters:

robotId[in] the id of the robot received from the referee system to get the client_id of.

Returns:

the client_id of the robot requested.