Skip to content

Commit

Permalink
Remove duplicate angle calculation from C++ (#985)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjansen4857 authored Jan 8, 2025
1 parent 447ebc8 commit 59a266c
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -307,9 +307,6 @@ void PathPlannerTrajectory::generateStates(
for (size_t i = 0; i < states.size(); i++) {
for (size_t m = 0; m < config.numModules; m++) {
if (i != states.size() - 1) {
states[i].moduleStates[m].fieldAngle =
(states[i + 1].moduleStates[m].fieldPos
- states[i].moduleStates[m].fieldPos).Angle();
frc::Translation2d fieldTranslation =
states[i + 1].moduleStates[m].fieldPos
- states[i].moduleStates[m].fieldPos;
Expand Down

0 comments on commit 59a266c

Please sign in to comment.