Fang-Robotics-MCB
Fang Robotics Team Codebase
Loading...
Searching...
No Matches
tap::communication::serial::RefSerialData Class Reference

#include <ref_serial_data.hpp>

Inheritance diagram for tap::communication::serial::RefSerialData:

Classes

class  RobotToRobotMessageHandler
 
class  Rx
 
class  Tx
 

Public Types

enum class  RobotId : uint16_t {
  INVALID = 0 , RED_HERO = 1 , RED_ENGINEER = 2 , RED_SOLDIER_1 = 3 ,
  RED_SOLDIER_2 = 4 , RED_SOLDIER_3 = 5 , RED_DRONE = 6 , RED_SENTINEL = 7 ,
  RED_DART = 8 , RED_RADAR_STATION = 9 , BLUE_HERO = 101 , BLUE_ENGINEER = 102 ,
  BLUE_SOLDIER_1 = 103 , BLUE_SOLDIER_2 = 104 , BLUE_SOLDIER_3 = 105 , BLUE_DRONE = 106 ,
  BLUE_SENTINEL = 107 , BLUE_DART = 108 , BLUE_RADAR_STATION = 109
}
 

Static Public Member Functions

static bool isBlueTeam (RobotId id)
 

Detailed Description

Contains enum and struct definitions used in the RefSerial class.

Member Enumeration Documentation

◆ RobotId

When receiving data about other robots or sending data to other robots, they are identified by the numbers below

Enumerator
INVALID 
RED_HERO 
RED_ENGINEER 
RED_SOLDIER_1 
RED_SOLDIER_2 
RED_SOLDIER_3 
RED_DRONE 
RED_SENTINEL 
RED_DART 
RED_RADAR_STATION 
BLUE_HERO 
BLUE_ENGINEER 
BLUE_SOLDIER_1 
BLUE_SOLDIER_2 
BLUE_SOLDIER_3 
BLUE_DRONE 
BLUE_SENTINEL 
BLUE_DART 
BLUE_RADAR_STATION 

Member Function Documentation

◆ isBlueTeam()

static bool tap::communication::serial::RefSerialData::isBlueTeam ( RobotId  id)
inlinestatic
Returns
true if the specified id is on the blue team, false if on the red team.

The documentation for this class was generated from the following file: