
127
(1) Objective: Obtains the current angle value of a mobile device
(2) Type: Information block (variable-type)
(3) Example: Dynamic rotation control
Rotate the mobile device to the left or right and observe whether the EP’s gimbal rotates accordingly.
Note:
1) The EP defaults to Chassis Lead Mode. To control the gimbal separately you will need to first set the robot
to Free Mode.
2) Mobile device refers to devices such as smartphones and tablets.
3) The gesture angle for mobile devices ranges from approximately -180 to 180°.
For the yaw-axis: Motion to the right is positive (0-180)
For the pitch-axis: Upward motion is positive (0-180)
For the roll-axis: Motion downward and to the right is positive (0-180)
Python API
:
Function: mobile_ctrl.get_attitude(attitude_enum)
Parameters:
●
attitude_enum(enum):
■
rm_define.mobile_atti_pitch
■
rm_define.mobile_atti_roll
■
rm_define.mobile_atti_yaw
I
Содержание RoboMaster EP
Страница 1: ......
Страница 2: ...1 ...
Страница 10: ...9 Before running the enlarge camera frame program After enlarging the camera frame ...
Страница 45: ...44 Python API Function chassis_ctrl is_impact Return value impact_status bool ...
Страница 53: ...52 Follow arrow markers ...
Страница 67: ...66 It can be observed from the FPV window that it takes about 2 1 seconds ...
Страница 76: ...75 ...
Страница 78: ...77 or ...
Страница 104: ...103 Note Sign position format X represents X coordinate and Y represents Y coordinate Python API ...
Страница 105: ...104 Function media_ctrl get_sight_bead_position Return value sight_bead_position list ...
Страница 116: ...115 ...
Страница 131: ...130 ...
Страница 149: ...148 You can check results using the FPV window ...
Страница 159: ...158 ...
Страница 165: ...164 1 Objective Creates and names a list 2 Type Settings block 3 Example Name a new list ...
Страница 171: ...170 In the FPV window the list length changes from 5 to 4 after deleting the first item Before After ...
Страница 185: ...184 Python API Class rm_ctrl PIDCtrl Function get_output Return value output float ...