
91
Python API
:
Function: vision_ctrl.check_condition(condition_enum)
Parameters:
●
condition_enum(enum):
■
rm_define.cond_sound_recognized_applause_twice
■
rm_define.cond_sound_recognized_applause_thrice
(1) Objective: When specific information (such as an object, Vision Marker, gesture, and so on) is identified,
the system will continue executing commands; otherwise, it will continue to wait.
(2) Type: Execution block, Blocking block
(3) Example: Practice shooting
Note:
If the target marker is not identified, the program in this block will continue waiting and the block will be
highlighted:
Summary of Contents for RoboMaster EP
Page 1: ......
Page 2: ...1 ...
Page 10: ...9 Before running the enlarge camera frame program After enlarging the camera frame ...
Page 45: ...44 Python API Function chassis_ctrl is_impact Return value impact_status bool ...
Page 53: ...52 Follow arrow markers ...
Page 67: ...66 It can be observed from the FPV window that it takes about 2 1 seconds ...
Page 76: ...75 ...
Page 78: ...77 or ...
Page 105: ...104 Function media_ctrl get_sight_bead_position Return value sight_bead_position list ...
Page 116: ...115 ...
Page 131: ...130 ...
Page 149: ...148 You can check results using the FPV window ...
Page 159: ...158 ...
Page 165: ...164 1 Objective Creates and names a list 2 Type Settings block 3 Example Name a new list ...
Page 185: ...184 Python API Class rm_ctrl PIDCtrl Function get_output Return value output float ...