extruder: Do sanity checks on extrusion rates

Add a run-time check to ensure the incoming g-code doesn't have a
ridiculously large e move.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2017-01-02 19:22:32 -05:00
parent 5a5bd2596a
commit b26922978a
3 changed files with 23 additions and 5 deletions

View File

@@ -115,6 +115,16 @@ nozzle_diameter: 0.500
filament_diameter: 3.500
# Diameter of the raw filament (in mm) as it enters the
# extruder. This parameter must be provided.
#max_extrude_cross_section:
# Maximum area of the cross section of an extrusion line (in
# mm^2). If a move requests an extrusion rate that would exceed this
# value it will cause an error to be returned. The default is: 4.0 *
# nozzle_diameter^2
#max_extrude_only_distance: 50.0
# Maximum length (in mm of raw filament) that an extrude only move
# may be. If an extrude only move requests a distance greater than
# this value it will cause an error to be returned. The default is
# 50mm.
max_velocity: 200000
# Maximum velocity (in mm/s) of the extruder motor for extrude only
# moves. This parameter must be provided.