Skip to content
#

pros

Here are 67 public repositories matching this topic...

dcieslak19973
dcieslak19973 commented Mar 1, 2021

Describe the bug
Current call uses:

const auto angle = iangle - odom->getState(StateMode::FRAME_TRANSFORMATION).theta;

Which can lead to 270 degree turns instead of 90 degree turns.

Changing to:

const auto angle = OdomMath::constrainAngle180(iangle - odom->getState(StateMode::FRAME_TRANSFORMATION).theta);

Should ensure the robot turns the shortest angle

**Steps To R

Improve this page

Add a description, image, and links to the pros topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the pros topic, visit your repo's landing page and select "manage topics."

Learn more