_velocity
Value Type
| numeric [-25-25] |
Description
Contains a robot's velocity. This variable has a range of -25 to 25 inclusive. Its value is positive when a robot is moving forward and negative when moving backward. A robot can not directly control its velocity. Robots can only set a target speed with the speedtarget command and direction with the ahead and back commands.
The _velocity variable accurately reflects the velocity that will be used to calculate the distance a robot travels during its current turn. Unlike the _accel variable, _velocity is recalculated after a robot moves rather than just before it moves. See _accel for more information.
See Also