Virtual Robot Simulator Official Guidebook
  • Coverpage
  • Introduction
  • FTC
    • Centerstage Game and Basic Rules
    • Powerplay Game and Basic Rules
  • VRS
  • Programming
    • User Interface
    • Blocks
      • LinearOpMode
      • Gamepad
      • Actuators
        • DcMotor
        • CRServo
        • Servo
      • Sensors
        • DistanceSensor
        • IMU
        • IMU-BNO055.Parameters
        • REV Color/Range Sensor
        • TouchSensor
      • Utilities
        • Acceleration
        • AngleUnit
        • AngularVelocity
        • Axis
        • Color
        • Orientation
        • PIDFCoefficients
        • Position
        • Range
        • Telemetry
        • Time
        • Vector
        • Velocity
      • Logic
      • Loops
      • Math
      • Text
      • Lists
      • Variables
      • Function
      • Miscellaneous
    • Basic Lessons
      • Drivetrain
      • IMU
      • Color Sensor
      • Telemetry
      • Range Sensor
      • Touch Sensor
      • Servo
      • CRServo
      • DCMotor
      • Logic and Loops
      • Functions
      • Tele-Op Control
    • Advanced Lessons
      • Advanced Tele-Op Control
    • Video Lessons
    • Simulation
    • Exploratory Activities
      • Wandering Robot
  • Robot Arena
    • Single Player
    • Activities
      • Coding Competition
      • CenterStage Competition
  • Conclusion
  • Author
  • Other Editions
Powered by GitBook
On this page
  1. Programming
  2. Blocks
  3. Utilities

AngularVelocity

PreviousAngleUnitNextAxis

Last updated 9 months ago

AngularVelocity refers to the rate at which an object or robot rotates around an axis. It's a crucial concept for understanding and controlling the rotational motion of various components in your robot, such as wheels, arms, or sensors. The blocks in this section allow you to create angular velocity objects, manipulate these objects, and obtain information from these objects.

AngularVelocity.AngleUnit

Returns the angle unit (DEGREES or RADIANS) of the given angular velocity object.

AngularVelocity.XRotationRate

Returns the rotational rate along the X-axis of the given angular velocity object.

AngularVelocity.YRotationRate

Returns the rotational rate along the Y-axis of the given angular velocity object.

AngularVelocity.ZRotationRate

Returns the rotational rate along the 2-axis of the given angular velocity object.

call AngularVelocity.getRotationRate

Returns the rotational rate of the given angular velocity object along the given axis (X, Y, or Z).

AngularVelocity.AcquisitionTime

Returns the acquisition time of the angular velocity object.

call AngularVelocity.toAngleUnit

Returns a new angular velocity object based on another object after converting its x, y and z rotation rates to the specified units.

new AngularVelocity

Returns a new angular velocity object.

new AngularVelocity (expanded)

Returns a new angular velocity object using the provided unit and x, y and z rotation rates. The new angular velocity object sets the current system time as the acquisition time.