50
■ rm_define.gimbal_up
■ rm_define.gimbal_down
■ rm_define.gimbal_left
■ rm_define.gimbal_right
(1) Objective: Sets the gimbal to rotate at a specific angle and direction
(2) Type: Execution block
(3) Example: Gimbal rotation
This will set the gimbal to rotate left or right with the selected sound effect.
Note:
In Chassis Lead Mode, only the “set gimbal to rotate (up/down) in (0)°” block is available; the “set gimbal to
rotate (left/right) in (0)°” block is not available.
Python API:
Function: gimbal_ctrl.rotate_with_degree(direction_enum, degree)
Parameters:
● direction_enum(enum):
■ rm_define.gimbal_up
■ rm_define.gimbal_down
■ rm_define.gimbal_left
■ rm_define.gimbal_right
● degree(int): [0, 55]°