resetFieldCentricOrigin

open fun resetFieldCentricOrigin(@NonNull drivePose: Pose2d)

Sets the origin angle for Field-Centric driving to the drive pose of the robot (effectively resetting the offset). This is the most common use case for resetting the offset of FC operations. If this mode is not enabled on the drive task, this value won't be used for anything meaningful.

Parameters

drivePose

the current pose of the drive that will be used to zero out the field centric origin