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

#include <ref_serial_data.hpp>

Public Attributes

uint8_t level
 
RobotId foulRobotID
 The robot that received the referee warning.
 
uint8_t count
 The number of violations triggered by the robot.
 
uint32_t lastReceivedWarningRobotTime = 0
 

Static Public Attributes

static constexpr uint32_t OFFENDING_OPERATOR_BLIND_TIME = 5'000
 time in ms that the user will be blinded for when the operator is the offender
 
static constexpr uint32_t NONOFFENDING_OPERATOR_BLIND_TIME = 2'000
 time in ms that the user will be blinded for when the operator is not the offender
 

Detailed Description

Ref serial warning data. This informational struct is intended to be updated each time a yellow or red card has been received.

When a yellow card is received, the offending Operator will be blocked from seeing anything for 5 seconds, while the operation interfaces of other operators in the offending team will be blocked for 2 seconds.

Member Data Documentation

◆ count

uint8_t tap::communication::serial::RefSerialData::Rx::RefereeWarningData::count

The number of violations triggered by the robot.

◆ foulRobotID

RobotId tap::communication::serial::RefSerialData::Rx::RefereeWarningData::foulRobotID

The robot that received the referee warning.

◆ lastReceivedWarningRobotTime

uint32_t tap::communication::serial::RefSerialData::Rx::RefereeWarningData::lastReceivedWarningRobotTime = 0

Last time (in milliseconds) that a warning was received.

◆ level

uint8_t tap::communication::serial::RefSerialData::Rx::RefereeWarningData::level

The level of the wraning. 1: Yellow card 2: Red card 3: Forfeiture

◆ NONOFFENDING_OPERATOR_BLIND_TIME

constexpr uint32_t tap::communication::serial::RefSerialData::Rx::RefereeWarningData::NONOFFENDING_OPERATOR_BLIND_TIME = 2'000
staticconstexpr

time in ms that the user will be blinded for when the operator is not the offender

◆ OFFENDING_OPERATOR_BLIND_TIME

constexpr uint32_t tap::communication::serial::RefSerialData::Rx::RefereeWarningData::OFFENDING_OPERATOR_BLIND_TIME = 5'000
staticconstexpr

time in ms that the user will be blinded for when the operator is the offender


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