toolhead: Allow junction_deviation to be set to zero

Allow lookahead to be effectively disabled by setting
junction_deviation to zero.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2017-12-18 17:27:35 -05:00
parent 0e0780a460
commit e6e0a21b06
1 changed files with 1 additions and 1 deletions

View File

@ -192,7 +192,7 @@ class ToolHead:
'max_accel_to_decel', self.max_accel * 0.5 'max_accel_to_decel', self.max_accel * 0.5
, above=0., maxval=self.max_accel) , above=0., maxval=self.max_accel)
self.junction_deviation = config.getfloat( self.junction_deviation = config.getfloat(
'junction_deviation', 0.02, above=0.) 'junction_deviation', 0.02, minval=0.)
self.move_queue = MoveQueue() self.move_queue = MoveQueue()
self.commanded_pos = [0., 0., 0., 0.] self.commanded_pos = [0., 0., 0., 0.]
# Print time tracking # Print time tracking