80
Notes:
The returned ID value indicates the section of the armor that has been hit:
ID=1: Chassis rear
ID=2: Chassis front
ID=3: Chassis left side
ID=4: Chassis right side
Python API:
Function: armor_ctrl.get_last_hit_index( )
Return value:
● index(int)
Function: armor_ctrl.get_last_hit_time( )
Return value:
● time(float)
4. (Any) armor hit
(1) Description: Continuously detect hit sections on a specific armor section. When the armor is hit, “True” is returned; otherwise,
“False” is returned.
(2) Returned value: Boolean
(3) Example: Configure quick retreat
If the left side of the chassis is hit, the robot will retreat by moving to the right; if the front of the chassis is hit, the robot will
retreat by moving backward.