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

AngleUnit

PreviousAccelerationNextAngularVelocity

Last updated 9 months ago

AngleUnit refers to the unit of measurement used to represent angles. It defines how angular values are interpreted and used within the FTC programming environment. Common angle units are

  • DEGREES: This is the most common and intuitive unit for representing angles. A full circle is 360 degrees, a right angle is 90 degrees, and so on.

  • RADIANS: This is the standard unit of angular measurement in mathematics and physics. A full circle is 2π radians, a right angle is π/2 radians.

call AngleUnit.normalize

Normalizes the given angle to the range of [-180, 180) degrees, or [-π, π) radians.

call AngleUnit.convert

Converts the given angle to the range of [-180, 180) degrees, or [-π, π) radians, depending on the “to” unit.