EasyManua.ls Logo

dji RoboMaster EP - Page 50

dji RoboMaster EP
187 pages
Print Icon
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...
49
gimbal_ctrl.stop()
gimbal_ctrl.suspend()
gimbal_ctrl.resume()
(1) Objective: Sets a specific rotation direction for the gimbal
(2) Type: Execution block
(3) Example: Rotate chassis and gimbal in opposite directions
Note:
1) In Chassis Lead Mode, only the “set gimbal to rotate (up/down)” block is available; the “set gimbal to rotate
(left/right)” block is not available.
2) This block sets the gimbal to constantly rotate to a specific direction until it receives a command such as
“set gimbal to stop”, “wait (1)s”and so on.
Python API:
Function: gimbal_ctrl.rotate(direction_enum)
Parameters:
● direction_enum(enum):