getHeading

open fun getHeading(angleUnit: AngleUnit): Double

Return

the normalized estimated H (heading) position of the robot in specified unit. This heading is a normalized heading, wrapped from -180°, to 180°.

Parameters

angleUnit

the unit to use


open fun getHeading(unnormalizedAngleUnit: UnnormalizedAngleUnit): Double

Return

the unnormalized estimated H (heading) position of the robot in specified unit This heading is unnormalized, not constrained from -180° to 180°. It will continue counting multiple rotations.

Parameters

unnormalizedAngleUnit

the unit to use that will not wrap angle


open fun getHeading(): Double

Deprecated

Return

the unnormalized estimated H (heading) position of the robot in radians. This heading is unnormalized, not constrained from -180° to 180°. It will continue counting multiple rotations.

Deprecated

two overload for this function exist with AngleUnit parameter. These minimize the possibility of unit confusion.