#include "mbed.h"
#include "crc.h"
Go to the source code of this file.
◆ BLUE
◆ FALSE
◆ Judge_Aerial_Energy
| #define Judge_Aerial_Energy 0x0205 |
◆ Judge_AI_ChallengeBuff
| #define Judge_AI_ChallengeBuff 0x0005 |
◆ Judge_Client_Map
| #define Judge_Client_Map 0x0305 |
◆ Judge_Dart_Client
| #define Judge_Dart_Client 0x020A |
◆ Judge_Dart_Countdown
| #define Judge_Dart_Countdown 0x0105 |
◆ Judge_Dart_Launch
| #define Judge_Dart_Launch 0x0004 |
◆ Judge_Event_Data
| #define Judge_Event_Data 0x0101 |
◆ JUDGE_EXTRA
◆ JUDGE_FRAME_HEADER
| #define JUDGE_FRAME_HEADER 0xA5 |
◆ Judge_Game_ResultData
| #define Judge_Game_ResultData 0x0002 |
◆ Judge_Game_StatusData
| #define Judge_Game_StatusData 0x0001 |
◆ Judge_Injury_State
| #define Judge_Injury_State 0x0206 |
◆ Judge_KeyMouse_Message
| #define Judge_KeyMouse_Message 0x0304 |
◆ Judge_Map_Interaction
| #define Judge_Map_Interaction 0x0303 |
◆ Judge_Power_Heat
| #define Judge_Power_Heat 0x0202 |
◆ Judge_RealTime_Shoot
| #define Judge_RealTime_Shoot 0x0207 |
◆ Judge_Referee_Warning
| #define Judge_Referee_Warning 0x0104 |
◆ Judge_Remaining_Rounds
| #define Judge_Remaining_Rounds 0x0208 |
◆ Judge_Robot_Buff
| #define Judge_Robot_Buff 0x0204 |
◆ Judge_Robot_Communicate
| #define Judge_Robot_Communicate 0x0301 |
◆ Judge_Robot_HP
| #define Judge_Robot_HP 0x0003 |
◆ Judge_Robot_Position
| #define Judge_Robot_Position 0x0203 |
◆ Judge_Robot_RFID
| #define Judge_Robot_RFID 0x0209 |
◆ Judge_Robot_State
| #define Judge_Robot_State 0x0201 |
◆ Judge_Supply_Station
| #define Judge_Supply_Station 0x0102 |
◆ Judge_User_Defined
| #define Judge_User_Defined 0x0302 |
◆ JudgeLength_Aerial_Energy
| #define JudgeLength_Aerial_Energy 11 |
◆ JudgeLength_AI_ChallengeBuff
| #define JudgeLength_AI_ChallengeBuff 20 |
◆ JudgeLength_Dart_Client
| #define JudgeLength_Dart_Client 21 |
◆ JudgeLength_Dart_Countdown
| #define JudgeLength_Dart_Countdown 12 |
◆ JudgeLength_Dart_Launch
| #define JudgeLength_Dart_Launch 12 |
◆ JudgeLength_Event_Data
| #define JudgeLength_Event_Data 13 |
◆ JudgeLength_Game_ResultData
| #define JudgeLength_Game_ResultData 10 |
◆ JudgeLength_Game_StatusData
| #define JudgeLength_Game_StatusData 20 |
◆ JudgeLength_Injury_State
| #define JudgeLength_Injury_State 10 |
◆ JudgeLength_Power_Heat
| #define JudgeLength_Power_Heat 25 |
◆ JudgeLength_RealTime_Shoot
| #define JudgeLength_RealTime_Shoot 16 |
◆ JudgeLength_Referee_Warning
| #define JudgeLength_Referee_Warning 12 |
◆ JudgeLength_Remaining_Rounds
| #define JudgeLength_Remaining_Rounds 15 |
◆ JudgeLength_Robot_Buff
| #define JudgeLength_Robot_Buff 15 |
◆ JudgeLength_Robot_Commute
| #define JudgeLength_Robot_Commute 35 |
◆ JudgeLength_Robot_HP
| #define JudgeLength_Robot_HP 41 |
◆ JudgeLength_Robot_Map
| #define JudgeLength_Robot_Map 26 |
◆ JudgeLength_Robot_Position
| #define JudgeLength_Robot_Position 25 |
◆ JudgeLength_Robot_RFID
| #define JudgeLength_Robot_RFID 13 |
◆ JudgeLength_Robot_State
| #define JudgeLength_Robot_State 22 |
◆ JudgeLength_Supply_Station
| #define JudgeLength_Supply_Station 12 |
◆ JUDGESYSTEM_PACKSIZE
| #define JUDGESYSTEM_PACKSIZE 389u |
◆ LEN_CMDID
| #define LEN_CMDID 2/*cmd_id*/ |
◆ LEN_HEADER
◆ LEN_TAIL
| #define LEN_TAIL 2/*frame_tail*/ |
◆ RED
◆ TRUE
◆ [struct]
| typedef __packed struct { ... } buff_t |
◆ ClientData_struct_t
◆ ext_client_custom_character_t
◆ ext_client_custom_graphic_delete_t
◆ ext_client_custom_graphic_double_t
◆ ext_client_custom_graphic_five_t
◆ ext_client_custom_graphic_seven_t
◆ ext_client_custom_graphic_single_t
◆ ext_student_interactive_header_data_character_t
◆ ext_student_interactive_header_data_delete_t
◆ ext_student_interactive_header_data_graphic_t
◆ ext_student_interactive_header_data_robot_comm_t
◆ ext_student_interactive_header_data_t
◆ [struct]
◆ [struct]
◆ graphic_data_struct_t
◆ [struct]
◆ [struct]
◆ [struct]
◆ [struct]
◆ robot_interactive_data_t
◆ [struct]
◆ [struct]
◆ [struct]
◆ get_remain_hp()
| uint8_t get_remain_hp |
( |
void |
| ) |
|
◆ get_robot_id()
| uint8_t get_robot_id |
( |
void |
| ) |
|
◆ is_red_or_blue()
| _Bool is_red_or_blue |
( |
void |
| ) |
|
◆ Judge_GetMessage()
| void Judge_GetMessage |
( |
uint16_t |
Data_Length | ) |
|
◆ Judge_sendPC()
| void Judge_sendPC |
( |
BufferedSerial * |
b | ) |
|
◆ JudgeSystem_USART_Receive_DMA()
| int JudgeSystem_USART_Receive_DMA |
( |
BufferedSerial * |
b | ) |
|
Receive data from the referee system serial port.
- Parameters
-
◆ referee_data_pack_handle()
| void referee_data_pack_handle |
( |
uint8_t |
sof, |
|
|
uint16_t |
cmd_id, |
|
|
uint8_t * |
p_data, |
|
|
uint16_t |
len, |
|
|
BufferedSerial * |
b |
|
) |
| |
Send data to the referee system serial port.
- Parameters
-
| sof | SOF (0xA5) |
| cmd_id | Command ID |
| p_data | Pointer to data |
| len | Length |
| b | Serial object |
◆ RobotStatus_LEDYellow()
| void RobotStatus_LEDYellow |
( |
BufferedSerial * |
b | ) |
|
◆ aerial_robot_energy
◆ angle
◆ armor_id
◆ attack_buff
◆ Buff
◆ buff
◆ buffer_energy
◆ bullet_type
◆ chassis_power_limit
| uint16_t chassis_power_limit |
◆ cooling_buff
◆ count
◆ current_HP
◆ defence_buff
◆ ext_dart_client_cmd
◆ ext_dart_remaining_time
◆ ext_dart_status
◆ ext_even_data
◆ ext_game_robot_HP
◆ ext_ICRA_buff_debuff_zone_status
◆ ext_rfid_status
◆ ext_supply_projectile_action
◆ game_progress
◆ game_result
◆ game_status
◆ game_type
◆ HP_deduction_reason
| uint8_t HP_deduction_reason |
◆ hurt_data
◆ InfoUpdataFlag
◆ infoUpdateFlag
◆ initial_speed
◆ launching_frequency
| uint8_t launching_frequency |
◆ level
◆ maximum_HP
◆ offending_robot_id
| uint8_t offending_robot_id |
◆ power_heat_data
◆ power_management_output
| uint8_t power_management_output |
◆ projectile_allowance
◆ projectile_allowance_17mm
| uint16_t projectile_allowance_17mm |
◆ projectile_allowance_42mm
| uint16_t projectile_allowance_42mm |
◆ recovery_buff
◆ referee_warning
◆ remaining_gold_coin
| uint16_t remaining_gold_coin |
◆ reserved1
◆ reserved2
◆ reserved3
◆ robot_id
◆ robot_level
◆ robot_pos
◆ robot_status
◆ shoot_data
◆ shooter_17mm_1_barrel_heat
| uint16_t shooter_17mm_1_barrel_heat |
◆ shooter_17mm_2_barrel_heat
| uint16_t shooter_17mm_2_barrel_heat |
◆ shooter_42mm_barrel_heat
| uint16_t shooter_42mm_barrel_heat |
◆ shooter_barrel_cooling_value
| uint16_t shooter_barrel_cooling_value |
◆ shooter_barrel_heat_limit
| uint16_t shooter_barrel_heat_limit |
◆ shooter_number
◆ stage_remain_time
| uint16_t stage_remain_time |
◆ SyncTimeStamp
◆ vulnerability_buff
| uint8_t vulnerability_buff |
◆ winner