Skip to content

Commit

Permalink
corrected error
Browse files Browse the repository at this point in the history
  • Loading branch information
sdekhterman committed Nov 1, 2024
1 parent 72db414 commit 745f8e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp_pid/src/environment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ namespace auvsl
double th1 = std::atan2( present(1) - past(1), present(0) - past(0));

// determine the vehicle's orientation difference relative the the current path segement and next path segment
double error = Environment::angSat(currentAng-th1);
double error = Environment::angSat(th1-currentAng);

return error;
}
Expand Down

0 comments on commit 745f8e2

Please sign in to comment.