setPose

open fun setPose(poseEstimateInchRad: Pose2d)

Set the current pose estimate of the drive. This method is useful when parsing the user-selected start position, so field-relative trajectories can be built.

Parameters

poseEstimateInchRad

The pose estimate to set (in, in, rad)


open fun setPose(poseEstimate: Pose2d, inUnit: Distance, angleUnit: Angle)

Set the current pose estimate of the drive. This method is useful when parsing the user-selected start position, so field-relative trajectories can be built.

Parameters

poseEstimate

The pose estimate to set

inUnit

The unit of the end pose vector (will be converted to inches)

angleUnit

The unit of the end pose heading (will be converted to radians)