gunleft( degrees )
Parameters
| Type | Description | |
| degrees | numeric | amount to rotate |
_result
Not set.
Descriptions
Rotates a robot's gun counter-clockwise the amount specified
by degrees. Negative values cause clockwise rotation. When additive
rotation is enabled, the rotation rate of a robot's gun is ±10 degrees per turn
relative to the robot's body. When additive rotation is disabled, the gun's
rotation rate is ±10 degrees per turn relative to the ground. See the
robot attributes topic for more
information about rotation rates.
After calling the gunleft command, you can determine the amount of
rotation remaining using the _gunrmn system
variable. When
any component of a robot is rotating, the _rotating
system variable is true. Gunleft generally requires multiple turns to complete and therefore causing blocking.
See Also
gunright, bodyleft, bodyright, radarleft, radarright, stop, stoprotate, blocking, _gunrmn, _rotating