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

Orientation

PreviousColorNextPIDFCoefficients

Last updated 9 months ago

FTC robots operate in three-dimensional space. Orientation describes how the robot is rotated or tilted within this space. These blocks in this section allow you to create orientation objects, manipulate these objects, and obtain information from these objects. For background on orientation calculations see Euler angles in Wikipedia.

call Orientation.AxesReference

Returns the axes reference of the given orientation object.

call Orientation.AxesOrder

Returns the axes order of the given orientation object. For example, “XYX”.

call Orientation.AngleUnit

Returns the angle unit value of the given orientation object.

call Orientation.FirstAngle

Returns the first angle of the given orientation object.

call Orientation.SecondAngle

Returns the second angle of the given orientation object.

call Orientation.ThirdAngle

Returns the third angle of the given orientation object.

call Orientation.AcquisitionTime

Returns the acquisition time of the given orientation object

call Orientation.toAngleUnit

Returns a new orientation object based on the given orientation object, converts the angle to a new unit, either “DEGREES” or “RADIANS.”

call Orientation.toText

Returns text representation of the given orientation object.

new Orientation

Return a new orientation object.

new Orientation (Expanded)

Returns a new orientation object based on the information provided. The new orientation object uses the current system time as the acquisition time.