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

#include <ref_serial_data.hpp>

Collaboration diagram for tap::communication::serial::RefSerialData::Rx::RobotData:

Public Attributes

RobotId robotId
 Robot type and team.
 
uint8_t robotLevel
 Current level of this robot (1-3).
 
uint16_t previousHp
 
uint16_t currentHp
 Current health of this robot.
 
uint16_t maxHp
 Max health of this robot.
 
RobotPower_t robotPower
 Flags indicating which parts of the robot have power.
 
ArmorId damagedArmorId
 Armor ID that was damaged.
 
DamageType damageType
 Cause of damage.
 
float receivedDps
 Damage per second received.
 
ChassisData chassis
 Chassis power draw and position data.
 
TurretData turret
 Turret firing and heat data.
 
RobotHpData allRobotHp
 Current HP of all the robots.
 
uint16_t remainingCoins
 Number of remaining coins left to spend.
 
RobotBuffStatus robotBuffStatus
 Status of all buffs on the robot.
 
RFIDActivationStatus_t rfidStatus
 
uint32_t robotDataReceivedTimestamp
 
RefereeWarningData refereeWarningData
 
RobotEnergyLevel robotEnergyRemaining
 The current energy level of the robot.
 

Member Data Documentation

◆ allRobotHp

RobotHpData tap::communication::serial::RefSerialData::Rx::RobotData::allRobotHp

Current HP of all the robots.

◆ chassis

ChassisData tap::communication::serial::RefSerialData::Rx::RobotData::chassis

Chassis power draw and position data.

◆ currentHp

uint16_t tap::communication::serial::RefSerialData::Rx::RobotData::currentHp

Current health of this robot.

◆ damagedArmorId

ArmorId tap::communication::serial::RefSerialData::Rx::RobotData::damagedArmorId

Armor ID that was damaged.

◆ damageType

DamageType tap::communication::serial::RefSerialData::Rx::RobotData::damageType

Cause of damage.

◆ maxHp

uint16_t tap::communication::serial::RefSerialData::Rx::RobotData::maxHp

Max health of this robot.

◆ previousHp

uint16_t tap::communication::serial::RefSerialData::Rx::RobotData::previousHp

Health of this robot before damage was received, used to calculate receivedDps if no damage was received recently, previousHp = currentHp.

◆ receivedDps

float tap::communication::serial::RefSerialData::Rx::RobotData::receivedDps

Damage per second received.

◆ refereeWarningData

RefereeWarningData tap::communication::serial::RefSerialData::Rx::RobotData::refereeWarningData

Referee warning information, updated when a robot receives a penalty

◆ remainingCoins

uint16_t tap::communication::serial::RefSerialData::Rx::RobotData::remainingCoins

Number of remaining coins left to spend.

◆ rfidStatus

RFIDActivationStatus_t tap::communication::serial::RefSerialData::Rx::RobotData::rfidStatus

The current status of which RFID zones are being activated by the current robot.

◆ robotBuffStatus

RobotBuffStatus tap::communication::serial::RefSerialData::Rx::RobotData::robotBuffStatus

Status of all buffs on the robot.

◆ robotDataReceivedTimestamp

uint32_t tap::communication::serial::RefSerialData::Rx::RobotData::robotDataReceivedTimestamp

Most recent time at which data with message id REF_MESSAGE_TYPE_ROBOT_STATUS has been received.

◆ robotEnergyRemaining

RobotEnergyLevel tap::communication::serial::RefSerialData::Rx::RobotData::robotEnergyRemaining

The current energy level of the robot.

◆ robotId

RobotId tap::communication::serial::RefSerialData::Rx::RobotData::robotId

Robot type and team.

◆ robotLevel

uint8_t tap::communication::serial::RefSerialData::Rx::RobotData::robotLevel

Current level of this robot (1-3).

◆ robotPower

RobotPower_t tap::communication::serial::RefSerialData::Rx::RobotData::robotPower

Flags indicating which parts of the robot have power.

◆ turret

TurretData tap::communication::serial::RefSerialData::Rx::RobotData::turret

Turret firing and heat data.


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