Team2337 / 2022-Presented-By-Noahs-Arcade

Other
1 stars 0 forks source link

Convert ProfiledPointToPointCommand to use relative rotations for theta controller #66

Closed ZachOrr closed 2 years ago

ZachOrr commented 2 years ago

Pulling out some code from another branch - this PR modifies the ProfiledPointToPointCommand to use relative rotations for the theta as opposed to regular full rotational values. This should ensure we travel the shortest distance to get to a theta as opposed to going the full range to the theta. Ex: a starting theta of 0 and a target theta of 270 will currently wrap us all the way around the target CCW to get to the 270 theta. Now, the 270 theta is converted in to a -90, and we'll travel 90 CW to get to the location.