|
Fang-Robotics-MCB
Fang Robotics Team Codebase
|
#include <ref_serial_data.hpp>

Classes | |
| struct | DeleteGraphicLayerMessage |
| struct | Graphic1Message |
| struct | Graphic2Message |
| struct | Graphic5Message |
| struct | Graphic7Message |
| struct | GraphicCharacterMessage |
| struct | GraphicData |
| struct | InteractiveHeader |
| struct | RobotToRobotMessage |
Public Types | |
| enum | DeleteGraphicOperation { DELETE_GRAPHIC_NO_OP = 0 , DELETE_GRAPHIC_LAYER = 1 , DELETE_ALL = 2 } |
| enum | GraphicOperation { GRAPHIC_NO_OP = 0 , GRAPHIC_ADD = 1 , GRAPHIC_MODIFY = 2 , GRAPHIC_DELETE = 3 } |
| Graphic operations that can be passed in an add graphic operation. More... | |
| enum class | GraphicType : uint8_t { STRAIGHT_LINE = 0 , RECTANGLE = 1 , CIRCLE = 2 , ELLIPSE = 3 , ARC = 4 , FLOATING_NUM = 5 , INTEGER = 6 , CHARACTER = 7 } |
| The type of graphic being drawn (some geometry, or a string/number) More... | |
| enum class | GraphicColor : uint8_t { RED_AND_BLUE = 0 , YELLOW = 1 , GREEN = 2 , ORANGE = 3 , PURPLISH_RED = 4 , PINK = 5 , CYAN = 6 , BLACK = 7 , WHITE = 8 } |
| The color of the graphic being drawn. More... | |
Static Public Member Functions | |
| template<typename T > | |
| static constexpr uint32_t | getWaitTimeAfterGraphicSendMs (T *) |
Static Public Attributes | |
| static constexpr uint32_t | MAX_TRANSMIT_SPEED_BYTES_PER_S = 1000 |
Contains enum and struct definitions specific to sending data to the referee serial class. Includes structure for sending different types of graphic messages.
Graphic operations that can be passed to a delete graphic operation. Using this enum you can specify if you would like to delete a graphic layer (multiple graphics can be drawn on one of a number of layers) or delete all the graphics on the screen.
| Enumerator | |
|---|---|
| DELETE_GRAPHIC_NO_OP | Do nothing, no-op. |
| DELETE_GRAPHIC_LAYER | Delete a particular graphic layer (specified later on) |
| DELETE_ALL | Delete all graphic in all graphic layers. |
|
strong |
Graphic operations that can be passed in an add graphic operation.
|
strong |
|
inlinestaticconstexpr |
Get the min wait time after which you can send more data to the client. Sending faster than this time may cause dropped packets.
Pass a pointer to some graphic message. For example, if you have a Graphic1Message called msg, you can call getWaitTimeAfterGraphicSendMs(&msg).
| T | The type of the graphic message that was just been sent. |
|
staticconstexpr |
You cannot send messages faster than this speed to the referee system.
Source: https://bbs.robomaster.com/forum.php?mod=viewthread&tid=9120
Changed from 1280 to 1000 as the HUD was still unreliable.
| struct tap::communication::serial::RefSerialData::Tx::InteractiveHeader tap::communication::serial::RefSerialData::Tx::modm_packed |
| struct tap::communication::serial::RefSerialData::Tx::GraphicData tap::communication::serial::RefSerialData::Tx::modm_packed |
| struct tap::communication::serial::RefSerialData::Tx::DeleteGraphicLayerMessage tap::communication::serial::RefSerialData::Tx::modm_packed |
| struct tap::communication::serial::RefSerialData::Tx::Graphic1Message tap::communication::serial::RefSerialData::Tx::modm_packed |
| struct tap::communication::serial::RefSerialData::Tx::RobotToRobotMessage tap::communication::serial::RefSerialData::Tx::modm_packed |
| struct tap::communication::serial::RefSerialData::Tx::Graphic2Message tap::communication::serial::RefSerialData::Tx::modm_packed |
| struct tap::communication::serial::RefSerialData::Tx::Graphic5Message tap::communication::serial::RefSerialData::Tx::modm_packed |
| struct tap::communication::serial::RefSerialData::Tx::Graphic7Message tap::communication::serial::RefSerialData::Tx::modm_packed |
| struct tap::communication::serial::RefSerialData::Tx::GraphicCharacterMessage tap::communication::serial::RefSerialData::Tx::modm_packed |