Orientation
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.