Skip to content
This repository has been archived by the owner on Jul 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #107 from purduesigbots/fix-turn-to-point
Browse files Browse the repository at this point in the history
fix turn to point
  • Loading branch information
AndrewLuGit authored Oct 3, 2023
2 parents 523c512 + a378baa commit 596698f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ARMS/chassis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,8 @@ void turn(double target, MoveFlags flags) {
// turn to point
void turn(Point target, double max, double exit_error, double ap,
MoveFlags flags) {
double angle_error = odom::getAngleError(target);
turn(angle_error, max, exit_error, ap, flags);
double angle_error = odom::getAngleError(target) * 180 / M_PI;
turn(angle_error, max, exit_error, ap, flags | RELATIVE);
}

void turn(Point target, double max, double exit_error, MoveFlags flags) {
Expand Down

0 comments on commit 596698f

Please sign in to comment.