Skip to content

Commit

Permalink
Merge pull request #222 from EZ-Robotics/bug/pid-odom-set-is-boomerang
Browse files Browse the repository at this point in the history
Default pid_odom_set is no longer forced to boomerang
  • Loading branch information
ssejrog authored Dec 12, 2024
2 parents 6a49400 + 5b57d32 commit 9e2b234
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EZ-Template/drive/set_pid/set_odom_pid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ void Drive::pid_odom_set(double target, int speed) {
void Drive::pid_odom_set(double target, int speed, bool slew_on) {
drive_directions fwd_or_rev = util::sgn(target) >= 0 ? fwd : rev;
pose target_pose = util::vector_off_point(target, {odom_x_get(), odom_y_get(), headingPID.target_get()});
odom path = {target_pose, fwd_or_rev, speed};
odom path = {{target_pose.x, target_pose.y}, fwd_or_rev, speed};

xyPID.timers_reset();
current_a_odomPID.timers_reset();
Expand Down

0 comments on commit 9e2b234

Please sign in to comment.