Page 186 - CodePilot V5.0 C8
P. 186
Block Description
turn to rotation block Rotates the robot to a specific rotation value
based on internal tracking.
turn to rotation 90 degrees
stop driving block Immediately stops all drivetrain movement.
stop driving
Drivetrain -- Settings
set drive velocity to block Sets the speed (percent) for forward and
reverse driving.
set drive velocity to 50 %
set turn velocity to block Sets rotational speed (percent) for turn actions.
set turn velocity to 50 %
set drive heading to degrees block Manually sets the robot’s directional orientation
in degrees.
set drive heading to 0 degrees
set drive rotation to degrees block Manually sets the robot’s rotational position
in degrees.
set drive rotation to 0 degrees
set drive timeout to seconds block Defines a time limit for drive/turn commands
(drive_for, turn_for, etc.) to avoid getting
set drive timeout to 1 seconds
stuck forever.
Drivetrain -- Values
drive is done? This block returns True if the drivetrain has
finished its current motion otherwise returns
drive is done?
False.
drive is moving? This block returns True when the drivetrain is
currently in motion otherwise returns False.
drive is moving?
drive heading in degrees This block shows the drivetrain’s current
absolute heading (0–359.99°).
drive heading in degrees
drive rotation in degrees This block shows the total rotation since the
program started.
drive rotation in degrees
184
CodePilot (V5.0)-VIII

