Skip to content

Commit

Permalink
change check if rotational porition is done for move to pose
Browse files Browse the repository at this point in the history
  • Loading branch information
Harsh-Sinha committed Mar 8, 2025
1 parent 13bfa62 commit 49daf33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/cpp/MoveToPose.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ units::degrees_per_second_t MoveToPose::angularRotation(frc::Rotation2d current,
val = -val;
}

if (std::abs(m_turn) <= 2.0f)
if (std::fabs(m_turn) <= 2.0f)
{
val = 0.0f;
//val = 0.0f;
m_MoveAngleToState = 3;
}

Expand Down

0 comments on commit 49daf33

Please sign in to comment.