gunright( degrees )
Parameters
| Type | Description | |
| degrees | numeric | amount to rotate |
_result
Not set.
Descriptions
Rotates a robot's gun clockwise the amount specified by
degrees. Negative values cause counter-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 gunright 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. Gunright generally requires multiple turns to complete and therefore causing blocking.
See Also
gunleft, bodyleft, bodyright, radarleft, radarright, stop, stoprotate, blocking, _gunrmn, _rotating