DDA: Fix slow travel speed
@phord abstract this to: This happens only when !recalc_speed, meaning we are cruising, not accelerating or decelerating. So it pegs our dda->c at c_min if it never made it as far as c_min. This commit will fix https://github.com/Traumflug/Teacup_Firmware/issues/69
This commit is contained in:
parent
51075caaa9
commit
8a4cd52a68
9
dda.c
9
dda.c
|
|
@ -910,6 +910,15 @@ void dda_clock() {
|
|||
}
|
||||
ATOMIC_END
|
||||
}
|
||||
else {
|
||||
ATOMIC_START
|
||||
if (current_id == dda->id)
|
||||
// This happens only when !recalc_speed, meaning we are cruising, not
|
||||
// accelerating or decelerating. So it pegs our dda->c at c_min if it
|
||||
// never made it as far as c_min.
|
||||
dda->c = dda->c_min;
|
||||
ATOMIC_END
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue