|
Fang-Robotics-MCB
Fang Robotics Team Codebase
|
#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 | |
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.
| uint8_t tap::communication::serial::RefSerialData::Rx::RefereeWarningData::count |
The number of violations triggered by the robot.
| RobotId tap::communication::serial::RefSerialData::Rx::RefereeWarningData::foulRobotID |
The robot that received the referee warning.
| uint32_t tap::communication::serial::RefSerialData::Rx::RefereeWarningData::lastReceivedWarningRobotTime = 0 |
Last time (in milliseconds) that a warning was received.
| uint8_t tap::communication::serial::RefSerialData::Rx::RefereeWarningData::level |
The level of the wraning. 1: Yellow card 2: Red card 3: Forfeiture
|
staticconstexpr |
time in ms that the user will be blinded for when the operator is not the offender
|
staticconstexpr |
time in ms that the user will be blinded for when the operator is the offender