EasyManua.ls Logo

dji Robomaster EP Core - Page 81

dji Robomaster EP Core
152 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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, Trueis returned; otherwise,
Falseis 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.

Other manuals for dji Robomaster EP Core

Related product manuals