Fang-Robotics-MCB
Fang Robotics Team Codebase
Loading...
Searching...
No Matches
ref_serial_data.hpp
Go to the documentation of this file.
1/*****************************************************************************/
2/********** !!! WARNING: CODE GENERATED BY TAPROOT. DO NOT EDIT !!! **********/
3/*****************************************************************************/
4
5/*
6 * Copyright (c) 2020-2021 Advanced Robotics at the University of Washington <robomstr@uw.edu>
7 *
8 * This file is part of Taproot.
9 *
10 * Taproot is free software: you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation, either version 3 of the License, or
13 * (at your option) any later version.
14 *
15 * Taproot is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with Taproot. If not, see <https://www.gnu.org/licenses/>.
22 */
23
24#ifndef TAPROOT_REF_SERIAL_DATA_HPP_
25#define TAPROOT_REF_SERIAL_DATA_HPP_
26
27#include <cinttypes>
28
29#include <modm/architecture/interface/register.hpp>
30
31#include "modm/architecture/utils.hpp"
32
33#include "dji_serial.hpp"
34
36{
41{
42public:
47 enum class RobotId : uint16_t
48 {
49 INVALID = 0,
50
51 RED_HERO = 1,
52 RED_ENGINEER = 2,
53 RED_SOLDIER_1 = 3,
54 RED_SOLDIER_2 = 4,
55 RED_SOLDIER_3 = 5,
56 RED_DRONE = 6,
57 RED_SENTINEL = 7,
58 RED_DART = 8,
60
61 BLUE_HERO = 101,
62 BLUE_ENGINEER = 102,
63 BLUE_SOLDIER_1 = 103,
64 BLUE_SOLDIER_2 = 104,
65 BLUE_SOLDIER_3 = 105,
66 BLUE_DRONE = 106,
67 BLUE_SENTINEL = 107,
68 BLUE_DART = 108,
70 };
71
73 static inline bool isBlueTeam(RobotId id) { return id >= RobotId::BLUE_HERO; }
74
76 {
77 public:
79 virtual void operator()(const DJISerial::ReceivedSerialMessage &message) = 0;
80 };
81
86 class Rx
87 {
88 public:
90 enum class GameType : uint8_t
91 {
92 UNKNOWN = 0,
94 ROBOMASTER_RMUC = 1,
99 };
100
101 enum class GameStage : uint8_t
102 {
103 PREMATCH = 0,
104 SETUP = 1,
105 INITIALIZATION = 2,
106 COUNTDOWN = 3,
107 IN_GAME = 4,
108 END_GAME = 5,
109 };
110
111 enum class GameWinner : uint8_t
112 {
113 DRAW = 0,
114 RED = 1,
115 BLUE = 2,
116 };
117
118 enum class SiteDartHit : uint8_t
119 {
120 NONE = 0,
121 OUTPOST = 1,
122 BASE_FIXED = 2,
125 };
126
127 enum class SupplierOutletStatus : uint8_t
128 {
129 CLOSED = 0,
130 PREPARING = 1,
131 RELEASING = 2
132 };
133
134 enum class DartTarget : uint8_t
135 {
136 NONE_OR_OUTPOST = 0,
137 BASE_FIXED = 1,
138 BASE_RANDOM = 2
139 };
140
141 enum class ArmorId : uint8_t
142 {
143 FRONT = 0,
144 LEFT = 1,
145 REAR = 2,
146 RIGHT = 3,
147 TOP = 4,
148 };
149
150 enum class DamageType : uint8_t
151 {
152 ARMOR_DAMAGE = 0,
153 MODULE_OFFLINE = 1,
155 BARREL_OVERHEAT = 3,
157 COLLISION = 5,
158 };
159
160 enum class SiteData : uint32_t
161 {
164 SUPPLIER_OCCUPIED = modm::Bit2,
165
166 SMALL_POWER_RUNE_ACTIVATED = modm::Bit3,
167 LARGER_POWER_RUNE_ACTIVIATED = modm::Bit4,
168
171
172 TRAPEZOID_OCCUPIED_TEAM = modm::Bit7,
173
174 CENTRAL_BUFF_OCCUPIED_TEAM = modm::Bit21,
176 };
178
179 enum class RobotPower : uint8_t
180 {
181 GIMBAL_HAS_POWER = modm::Bit0,
182 CHASSIS_HAS_POWER = modm::Bit1,
183 SHOOTER_HAS_POWER = modm::Bit2,
184 };
186
187 enum class RobotEnergyLevel : uint8_t
188 {
189 ABOVE_50_PERCENT = 0x32,
190 ABOVE_30_PERCENT = 0b11110,
191 ABOVE_15_PERCENT = 0b11100,
192 ABOVE_5_PERCENT = 0b11000,
193 ABOVE_1_PERCENT = 0b10000,
194 BELOW_1_PERCENT = 0b00000,
195 };
196
198 enum class RFIDActivationStatus : uint32_t
199 {
200 BASE_BUFF = modm::Bit0,
201 CENTRAL_ELEVATED_GROUND_OWN = modm::Bit1,
203 TRAPEZOID_OWN = modm::Bit3,
204 TRAPEZOID_OPPONENT = modm::Bit4,
205 LAUNCH_RAMP_FRONT_OWN = modm::Bit5,
206 LAUNCH_RAMP_BACK_OWN = modm::Bit6,
207 LAUNCH_RAMP_FRONT_OPPONENT = modm::Bit7,
208 LAUNCH_RAMP_BACK_OPPONENT = modm::Bit8,
213 TERRAIN_CROSSING_OFF_ROAD_OWN = modm::Bit13,
214 TERRAIN_CROSSING_ON_ROAD_OWN = modm::Bit14,
217 FORTRESS_BUFF_OWN = modm::Bit17,
218 OUTPOST_BUFF_OWN = modm::Bit18,
219 RESUPPLY_ZONE_OUTSIDE_EXCHANGE = modm::Bit19,
220 RESUPPLY_ZONE_INSIDE_EXCHANGE = modm::Bit20,
221 LARGE_RESOURCE_ISLAND_OWN = modm::Bit21,
222 LARGE_RESOURCE_ISLAND_OPPONENT = modm::Bit22,
223 CENTRAL_BUFF = modm::Bit23
224 };
226
228 {
229 uint16_t damageAmount;
230 uint32_t timestampMs;
231 };
232
234 {
237 };
238
249
253 static constexpr int MAX_LAUNCH_SPEED_17MM = 25;
254
258 static constexpr int MAX_LAUNCH_SPEED_42MM = 16;
259
264 {
265 struct RobotHp
266 {
267 uint16_t hero1;
268 uint16_t engineer2;
269 uint16_t standard3;
270 uint16_t standard4;
271 uint16_t sentry7;
272 uint16_t outpost;
273 uint16_t base;
274 };
275
278 };
279
289
299
304 {
305 float x;
306 float y;
307 };
308
315
336
338 {
339 uint8_t recoveryBuff;
340 uint8_t coolingBuff;
342 uint8_t defenseBuff;
343 uint8_t
345 uint16_t attackBuff;
346 };
347
357 {
358 uint8_t level;
365 uint8_t count;
368
370 static constexpr uint32_t OFFENDING_OPERATOR_BLIND_TIME = 5'000;
372 static constexpr uint32_t NONOFFENDING_OPERATOR_BLIND_TIME = 2'000;
373 };
374
385
386 enum AirSupportState : uint8_t
387 {
389 COOLED = 1,
390 IN_AIR = 2
391 };
392
399
400 enum DartStationState : uint8_t
401 {
402 OPEN = 0,
403 CLOSED = 1,
404 TRANSITION = 2
405 };
406
415
423
428 {
429 uint8_t hero;
430 uint8_t engineer;
431 uint8_t standard3;
432 uint8_t standard4;
433 uint8_t sentry;
434 };
435
443
449
468
497 };
498
503 class Tx
504 {
505 public:
517
531
533 enum class GraphicType : uint8_t
534 {
535 STRAIGHT_LINE = 0,
536 RECTANGLE = 1,
537 CIRCLE = 2,
538 ELLIPSE = 3,
539 ARC = 4,
540 FLOATING_NUM = 5,
541 INTEGER = 6,
542 CHARACTER = 7,
543 };
544
546 enum class GraphicColor : uint8_t
547 {
548 RED_AND_BLUE = 0,
549 YELLOW = 1,
550 GREEN = 2,
551 ORANGE = 3,
552 PURPLISH_RED = 4,
553 PINK = 5,
554 CYAN = 6,
555 BLACK = 7,
556 WHITE = 8,
557 };
558
563 {
564 uint16_t dataCmdId;
565 uint16_t senderId;
566 uint16_t receiverId;
568
570 {
571 uint8_t name[3];
572 uint32_t operation : 3;
573 uint32_t type : 3;
574 uint32_t layer : 4;
575 uint32_t color : 4;
576 uint32_t startAngle : 9;
577 uint32_t endAngle : 9;
578 uint32_t lineWidth : 10;
579 uint32_t startX : 11;
580 uint32_t startY : 11;
581 union
582 {
583 struct
584 {
585 uint32_t radius : 10;
586 uint32_t endX : 11;
587 uint32_t endY : 11;
589 int32_t value : 32;
592
602
611
619
628
637
646
656
664 static constexpr uint32_t MAX_TRANSMIT_SPEED_BYTES_PER_S = 1000;
665
677 template <typename T>
678 static constexpr uint32_t getWaitTimeAfterGraphicSendMs(T *)
679 {
680 // Must be a valid graphic message type
681 static_assert(
682 std::is_same<T, DeleteGraphicLayerMessage>::value ||
683 std::is_same<T, Graphic1Message>::value ||
684 std::is_same<T, RobotToRobotMessage>::value ||
685 std::is_same<T, Graphic2Message>::value ||
686 std::is_same<T, Graphic5Message>::value ||
687 std::is_same<T, Graphic7Message>::value ||
688 std::is_same<T, GraphicCharacterMessage>::value,
689 "Invalid type, getWaitTimeAfterGraphicSendMs only takes in ref serial message "
690 "types.");
691
692 return sizeof(T) * 1'000 / MAX_TRANSMIT_SPEED_BYTES_PER_S;
693 }
694 };
695};
696
698{
699 return static_cast<RefSerialData::RobotId>(
700 static_cast<uint16_t>(id1) + static_cast<uint16_t>(id2));
701}
702
704{
705 return static_cast<RefSerialData::RobotId>(
706 static_cast<uint16_t>(id1) - static_cast<uint16_t>(id2));
707}
708} // namespace tap::communication::serial
709
710#endif // TAPROOT_REF_SERIAL_DATA_HPP_
virtual void operator()(const DJISerial::ReceivedSerialMessage &message)=0
Definition ref_serial_data.hpp:87
GameStage
Definition ref_serial_data.hpp:102
RFIDActivationStatus
Activation status flags for the RFID module (for RMUC only).
Definition ref_serial_data.hpp:199
RobotPower
Definition ref_serial_data.hpp:180
@ CHASSIS_HAS_POWER
1 if there is 24V output to chassis, 0 for 0V.
@ GIMBAL_HAS_POWER
1 if there is 24V output to gimbal, 0 for 0V.
@ SHOOTER_HAS_POWER
1 if there is 24V output to shooter, 0 for 0V.
RobotEnergyLevel
Definition ref_serial_data.hpp:188
MechanismID
Definition ref_serial_data.hpp:244
@ TURRET_17MM_2
17mm barrel ID 2
Definition ref_serial_data.hpp:246
@ TURRET_42MM
42mm barrel
Definition ref_serial_data.hpp:247
@ TURRET_17MM_1
17mm barrel ID 1
Definition ref_serial_data.hpp:245
GameType
The type of game the robot is competing in.
Definition ref_serial_data.hpp:91
@ ROBOMASTER_RMUTC
RoboMaster Technical Challenge.
@ ROBOMASTER_RMUC
RoboMaster Univeristy Challenge.
@ ROBOMASTER_RMUL_3V3
RoboMaster RMUL 3v3 competition.
@ ROBOMASTER_RMUL_1V1
RoboMaster RMUL 1v1 competition.
DartTarget
Definition ref_serial_data.hpp:135
SupplierOutletStatus
Definition ref_serial_data.hpp:128
DamageType
Definition ref_serial_data.hpp:151
static constexpr int MAX_LAUNCH_SPEED_17MM
Definition ref_serial_data.hpp:253
static constexpr int MAX_LAUNCH_SPEED_42MM
Definition ref_serial_data.hpp:258
SiteData
Definition ref_serial_data.hpp:161
AirSupportState
Definition ref_serial_data.hpp:387
@ IN_AIR
The air support is in the air.
Definition ref_serial_data.hpp:390
@ COOLED
The air support has cooled down.
Definition ref_serial_data.hpp:389
@ COOLING
The air support is cooling down.
Definition ref_serial_data.hpp:388
DartStationState
Definition ref_serial_data.hpp:401
@ TRANSITION
The dart station is opening or closing.
Definition ref_serial_data.hpp:404
@ CLOSED
The dart station is closed.
Definition ref_serial_data.hpp:403
@ OPEN
The dart station is open.
Definition ref_serial_data.hpp:402
GameWinner
Definition ref_serial_data.hpp:112
BulletType
Definition ref_serial_data.hpp:234
@ AMMO_42
42 mm projectile ammo.
Definition ref_serial_data.hpp:236
@ AMMO_17
17 mm projectile ammo.
Definition ref_serial_data.hpp:235
ArmorId
Definition ref_serial_data.hpp:142
SiteDartHit
Definition ref_serial_data.hpp:119
@ BASE_RANDOM_FIXED
Fixed target hit after random movement.
Definition ref_serial_data.hpp:504
struct tap::communication::serial::RefSerialData::Tx::InteractiveHeader modm_packed
GraphicType
The type of graphic being drawn (some geometry, or a string/number)
Definition ref_serial_data.hpp:534
GraphicOperation
Graphic operations that can be passed in an add graphic operation.
Definition ref_serial_data.hpp:520
@ GRAPHIC_NO_OP
Do nothing, no-op.
Definition ref_serial_data.hpp:521
@ GRAPHIC_ADD
Definition ref_serial_data.hpp:522
@ GRAPHIC_DELETE
Delete a particular graphic.
Definition ref_serial_data.hpp:529
@ GRAPHIC_MODIFY
Definition ref_serial_data.hpp:527
DeleteGraphicOperation
Definition ref_serial_data.hpp:512
@ DELETE_ALL
Delete all graphic in all graphic layers.
Definition ref_serial_data.hpp:515
@ DELETE_GRAPHIC_NO_OP
Do nothing, no-op.
Definition ref_serial_data.hpp:513
@ DELETE_GRAPHIC_LAYER
Delete a particular graphic layer (specified later on)
Definition ref_serial_data.hpp:514
static constexpr uint32_t MAX_TRANSMIT_SPEED_BYTES_PER_S
Definition ref_serial_data.hpp:664
GraphicColor
The color of the graphic being drawn.
Definition ref_serial_data.hpp:547
static constexpr uint32_t getWaitTimeAfterGraphicSendMs(T *)
Definition ref_serial_data.hpp:678
Definition ref_serial_data.hpp:41
static bool isBlueTeam(RobotId id)
Definition ref_serial_data.hpp:73
RobotId
Definition ref_serial_data.hpp:48
Definition dji_serial.cpp:41
RefSerialData::RobotId operator-(RefSerialData::RobotId id1, RefSerialData::RobotId id2)
Definition ref_serial_data.hpp:703
RefSerialData::RobotId operator+(RefSerialData::RobotId id1, RefSerialData::RobotId id2)
Definition ref_serial_data.hpp:697
uint8_t remainingStateTime
Definition ref_serial_data.hpp:396
AirSupportState state
The current state of air support.
Definition ref_serial_data.hpp:395
uint16_t powerBuffer
Chassis power buffer (in J).
Definition ref_serial_data.hpp:311
uint16_t powerConsumptionLimit
The current chassis power limit (in W).
Definition ref_serial_data.hpp:313
RobotPosition position
x, y coordinate of the chassis (in m).
Definition ref_serial_data.hpp:312
uint16_t damageAmount
Amount of damage received.
Definition ref_serial_data.hpp:229
uint32_t timestampMs
Time when damage was received (in milliseconds).
Definition ref_serial_data.hpp:230
uint8_t hits
The number of successful hits by the dart launcher.
Definition ref_serial_data.hpp:382
DartTarget selectedTarget
The currently selected target.
Definition ref_serial_data.hpp:383
SiteDartHit lastHit
The last target hit by the dart.
Definition ref_serial_data.hpp:381
uint8_t launchCountdown
Seconds until the dart launcher can fire again.
Definition ref_serial_data.hpp:380
uint16_t targetChangedTime
Definition ref_serial_data.hpp:410
uint16_t lastLaunchedTime
Definition ref_serial_data.hpp:412
DartStationState state
Current state of the dart station doors.
Definition ref_serial_data.hpp:409
uint8_t timeSinceLastDartHit
Time since the last dart hit own outpost or base.
Definition ref_serial_data.hpp:286
SiteData_t siteData
Information about occupied zones.
Definition ref_serial_data.hpp:285
SiteDartHit lastDartHit
The target hit by the last dart.
Definition ref_serial_data.hpp:287
AirSupportData airSupportData
Information about the air support.
Definition ref_serial_data.hpp:460
GameWinner gameWinner
Results of the match.
Definition ref_serial_data.hpp:456
SentryInfo sentry
Information about the sentry.
Definition ref_serial_data.hpp:465
EventData eventData
Data about the current event.
Definition ref_serial_data.hpp:457
RadarInfo radar
Information about the radar station.
Definition ref_serial_data.hpp:466
SupplierAction supplier
Data about the projectile supplier.
Definition ref_serial_data.hpp:458
uint64_t unixTime
Unix time of the competition server.
Definition ref_serial_data.hpp:455
DartStationInfo dartStation
Information about the dart launching station.
Definition ref_serial_data.hpp:461
RadarMarkProgress radarProgress
Information about the mark progress for the radar station.
Definition ref_serial_data.hpp:464
GameStage gameStage
Current stage in the game.
Definition ref_serial_data.hpp:453
DartInfo dartInfo
Data about the dart launcher.
Definition ref_serial_data.hpp:459
GroundRobotPositions positions
Information about the position of ground robots.
Definition ref_serial_data.hpp:462
uint16_t stageTimeRemaining
Remaining time in the current stage (in seconds).
Definition ref_serial_data.hpp:454
GameType gameType
Current type of competition the robot is taking part in.
Definition ref_serial_data.hpp:452
RobotPosition hero
Definition ref_serial_data.hpp:418
RobotPosition engineer
Definition ref_serial_data.hpp:419
RobotPosition standard4
Definition ref_serial_data.hpp:421
RobotPosition standard3
Definition ref_serial_data.hpp:420
bool activeDoubleVulnerabilityEffect
True when the effect is active.
Definition ref_serial_data.hpp:447
uint8_t availableDoubleVulnerablilityEffects
The number of remaining effects.
Definition ref_serial_data.hpp:446
uint8_t standard3
Definition ref_serial_data.hpp:431
uint8_t standard4
Definition ref_serial_data.hpp:432
uint8_t engineer
Definition ref_serial_data.hpp:430
uint8_t sentry
Definition ref_serial_data.hpp:433
uint8_t count
The number of violations triggered by the robot.
Definition ref_serial_data.hpp:365
RobotId foulRobotID
The robot that received the referee warning.
Definition ref_serial_data.hpp:364
uint32_t lastReceivedWarningRobotTime
Definition ref_serial_data.hpp:366
static constexpr uint32_t OFFENDING_OPERATOR_BLIND_TIME
time in ms that the user will be blinded for when the operator is the offender
Definition ref_serial_data.hpp:370
static constexpr uint32_t NONOFFENDING_OPERATOR_BLIND_TIME
time in ms that the user will be blinded for when the operator is not the offender
Definition ref_serial_data.hpp:372
uint8_t recoveryBuff
The robot's recovery buff. Each increment is 1%.
Definition ref_serial_data.hpp:339
uint16_t attackBuff
The robot's attack buff. Each increment is 1%.
Definition ref_serial_data.hpp:345
uint8_t coolingBuff
Definition ref_serial_data.hpp:340
uint8_t defenseBuff
The robot's defense buff. Each increment is 1%.
Definition ref_serial_data.hpp:342
uint8_t vulnerabilityBuff
The robot's negative defense buff. Each increment is 1%.
Definition ref_serial_data.hpp:344
float receivedDps
Damage per second received.
Definition ref_serial_data.hpp:482
RefereeWarningData refereeWarningData
Definition ref_serial_data.hpp:493
RobotPower_t robotPower
Flags indicating which parts of the robot have power.
Definition ref_serial_data.hpp:479
ArmorId damagedArmorId
Armor ID that was damaged.
Definition ref_serial_data.hpp:480
uint16_t maxHp
Max health of this robot.
Definition ref_serial_data.hpp:478
TurretData turret
Turret firing and heat data.
Definition ref_serial_data.hpp:484
DamageType damageType
Cause of damage.
Definition ref_serial_data.hpp:481
RFIDActivationStatus_t rfidStatus
Definition ref_serial_data.hpp:488
uint16_t remainingCoins
Number of remaining coins left to spend.
Definition ref_serial_data.hpp:486
RobotEnergyLevel robotEnergyRemaining
The current energy level of the robot.
Definition ref_serial_data.hpp:495
RobotId robotId
Robot type and team.
Definition ref_serial_data.hpp:471
RobotBuffStatus robotBuffStatus
Status of all buffs on the robot.
Definition ref_serial_data.hpp:487
uint8_t robotLevel
Current level of this robot (1-3).
Definition ref_serial_data.hpp:472
uint32_t robotDataReceivedTimestamp
Definition ref_serial_data.hpp:490
uint16_t currentHp
Current health of this robot.
Definition ref_serial_data.hpp:477
ChassisData chassis
Chassis power draw and position data.
Definition ref_serial_data.hpp:483
RobotHpData allRobotHp
Current HP of all the robots.
Definition ref_serial_data.hpp:485
uint16_t previousHp
Definition ref_serial_data.hpp:473
uint16_t standard4
Definition ref_serial_data.hpp:270
uint16_t engineer2
Definition ref_serial_data.hpp:268
uint16_t standard3
Definition ref_serial_data.hpp:269
RobotHp blue
Definition ref_serial_data.hpp:277
RobotHp red
Definition ref_serial_data.hpp:276
float x
The x location in meters.
Definition ref_serial_data.hpp:305
float y
The y location in meters.
Definition ref_serial_data.hpp:306
uint8_t remoteHealthExchanges
The number of remote health exchanges taken.
Definition ref_serial_data.hpp:441
uint16_t projectileAllowance
Allocated projectiles not including remote exchange.
Definition ref_serial_data.hpp:438
uint8_t remoteProjectileExchanges
The number of remote projectile exchanges taken.
Definition ref_serial_data.hpp:440
SupplierOutletStatus outletStatus
The current state of the supplier outlet.
Definition ref_serial_data.hpp:296
RobotId reloadingRobot
The id of the reloading robot.
Definition ref_serial_data.hpp:295
uint8_t suppliedProjectiles
The number of projectiles suppied.
Definition ref_serial_data.hpp:297
uint32_t lastReceivedLaunchingInfoTimestamp
Definition ref_serial_data.hpp:332
uint16_t heat42
Current 42mm turret heat.
Definition ref_serial_data.hpp:323
uint16_t heatLimit
Turret heat limit. Shared with all turrets.
Definition ref_serial_data.hpp:324
float yaw
Barrel yaw position (degree).
Definition ref_serial_data.hpp:331
MechanismID launchMechanismID
Either 17mm mechanism 1, 3, or 42 mm mechanism.
Definition ref_serial_data.hpp:319
float bulletSpeed
Last bullet speed (in m/s).
Definition ref_serial_data.hpp:330
uint16_t coolingRate
Turret cooling value per second. Shared with all turrets.
Definition ref_serial_data.hpp:325
uint16_t heat17ID2
Current 17mm turret heat, ID2.
Definition ref_serial_data.hpp:322
BulletType bulletType
17mm or 42mm last projectile shot.
Definition ref_serial_data.hpp:318
uint16_t bulletsRemaining17
Definition ref_serial_data.hpp:326
uint16_t heat17ID1
Current 17mm turret heat, ID1.
Definition ref_serial_data.hpp:321
uint16_t bulletsRemaining42
Definition ref_serial_data.hpp:328
uint8_t firingFreq
Firing frequency (in Hz).
Definition ref_serial_data.hpp:320
InteractiveHeader interactiveHeader
Definition ref_serial_data.hpp:597
DJISerial::FrameHeader frameHeader
Definition ref_serial_data.hpp:595
uint16_t crc16
Definition ref_serial_data.hpp:609
GraphicData graphicData
Definition ref_serial_data.hpp:608
DJISerial::FrameHeader frameHeader
Definition ref_serial_data.hpp:605
InteractiveHeader interactiveHeader
Definition ref_serial_data.hpp:607
uint16_t cmdId
Definition ref_serial_data.hpp:606
InteractiveHeader interactiveHeader
Definition ref_serial_data.hpp:624
GraphicData graphicData[2]
Definition ref_serial_data.hpp:625
DJISerial::FrameHeader frameHeader
Definition ref_serial_data.hpp:622
uint16_t cmdId
Definition ref_serial_data.hpp:623
uint16_t crc16
Definition ref_serial_data.hpp:626
GraphicData graphicData[5]
Definition ref_serial_data.hpp:634
uint16_t cmdId
Definition ref_serial_data.hpp:632
DJISerial::FrameHeader frameHeader
Definition ref_serial_data.hpp:631
InteractiveHeader interactiveHeader
Definition ref_serial_data.hpp:633
uint16_t crc16
Definition ref_serial_data.hpp:635
DJISerial::FrameHeader frameHeader
Definition ref_serial_data.hpp:640
uint16_t crc16
Definition ref_serial_data.hpp:644
uint16_t cmdId
Definition ref_serial_data.hpp:641
GraphicData graphicData[7]
Definition ref_serial_data.hpp:643
InteractiveHeader interactiveHeader
Definition ref_serial_data.hpp:642
GraphicData graphicData
Definition ref_serial_data.hpp:652
DJISerial::FrameHeader frameHeader
Definition ref_serial_data.hpp:649
InteractiveHeader interactiveHeader
Definition ref_serial_data.hpp:651
uint8_t name[3]
Definition ref_serial_data.hpp:571
int32_t value
Definition ref_serial_data.hpp:589
uint32_t layer
Definition ref_serial_data.hpp:574
uint32_t endX
Definition ref_serial_data.hpp:586
uint32_t startY
Definition ref_serial_data.hpp:580
uint32_t startX
Definition ref_serial_data.hpp:579
uint32_t radius
Definition ref_serial_data.hpp:585
uint32_t endAngle
Definition ref_serial_data.hpp:577
uint32_t startAngle
Definition ref_serial_data.hpp:576
uint32_t type
Definition ref_serial_data.hpp:573
uint32_t endY
Definition ref_serial_data.hpp:587
uint32_t lineWidth
Definition ref_serial_data.hpp:578
struct tap::communication::serial::RefSerialData::Tx::GraphicData::@0::@1 modm_packed
uint32_t operation
Definition ref_serial_data.hpp:572
uint32_t color
Definition ref_serial_data.hpp:575
uint16_t receiverId
Definition ref_serial_data.hpp:566
uint16_t senderId
Definition ref_serial_data.hpp:565
uint16_t dataCmdId
Definition ref_serial_data.hpp:564
DJISerial::FrameHeader frameHeader
Definition ref_serial_data.hpp:614
InteractiveHeader interactiveHeader
Definition ref_serial_data.hpp:616
uint8_t dataAndCRC16[115]
Definition ref_serial_data.hpp:617