25
Python API:
Function: chassis_ctrl.set_wheel_speed(lf_speed, rf_speed, lr_speed, rr_speed)
Parameters:
● lf_speed(int): [-1000, 1000] rpm
● rf_speed(int): [-1000, 1000] rpm
● lr_speed(int): [-1000, 1000] rpm
● rr_speed(int): [-1000, 1000] rpm
6. Set chassis to translate at (0)°
(1) Description: Set the chassis to translate in a specified direction
(2) Type: Execution block
(3) Example: Make a round trip
This will control the RoboMaster EP CORE to translate forward for one second, then turn around and return to the starting
point.
Note:
This block will control the chassis to continuously translate in a specified direction until the robot receives a “set chassis to
stop moving,” “wait (x) s,” or other command that controls the chassis movement.
Python API:
Function: chassis_ctrl.move(degree)
Parameters:
● degree (int): [-180, 180] °