Skip to content

Commit

Permalink
fix for bresenham overstep
Browse files Browse the repository at this point in the history
  • Loading branch information
i-make-robots committed Jun 26, 2016
1 parent 6badd31 commit db66ef5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions arduino/firmware_rumba/segment.ino
Original file line number Diff line number Diff line change
Expand Up @@ -339,9 +339,8 @@ ISR(TIMER1_COMPA_vect) {
delta_x = working_seg->a[0].absdelta;
delta_y = working_seg->a[1].absdelta;
delta_z = working_seg->a[2].absdelta;
over_x = -steps_total;
over_y = -steps_total;
over_z = -steps_total;
over_x = -steps_total/2;
over_z = over_y = over_x;
accel_until=working_seg->accel_until;
decel_after=working_seg->decel_after;
return;
Expand Down

0 comments on commit db66ef5

Please sign in to comment.