aboutsummaryrefslogtreecommitdiffstats
path: root/klippy
Commit message (Collapse)AuthorAgeFilesLines
* heater_bed: Use new GCodeCommand wrappersKevin O'Connor2020-05-051-5/+4
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* screws_tilt_adjust: Use new GCodeCommand wrappersKevin O'Connor2020-05-051-2/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* bltouch: Use new GCodeCommand wrappersKevin O'Connor2020-05-051-8/+8
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* tuning_tower: Use new GCodeCommand wrappersKevin O'Connor2020-05-051-8/+8
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* query_endstops: Use new GCodeCommand wrappersKevin O'Connor2020-05-051-3/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* fan: Use new GCodeCommand wrappersKevin O'Connor2020-05-051-4/+3
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stepper_enable: Use new GCodeCommand wrappersKevin O'Connor2020-05-051-21/+21
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* pid_calibrate: Use new GCodeCommand wrappersKevin O'Connor2020-05-051-10/+9
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* safe_z_home: Use new GCodeCommand wrappersKevin O'Connor2020-05-051-5/+5
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* endstop_phase: Use new GCodeCommand wrappersKevin O'Connor2020-05-051-11/+11
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* homing_override: Use new GCodeCommand wrappersKevin O'Connor2020-05-051-6/+6
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* query_adc: Use new GCodeCommand wrappersKevin O'Connor2020-05-051-6/+5
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gcode_macro: Use new GCodeCommand wrappersKevin O'Connor2020-05-051-7/+5
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* idle_timeout: Use new GCodeCommand wrappersKevin O'Connor2020-05-051-7/+4
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* tsl1401cl_filament_width_sensor: Use new GCodeCommand wrappersKevin O'Connor2020-05-051-8/+8
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* force_move: Use new GCodeCommand wrappersKevin O'Connor2020-05-051-23/+24
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* quad_gantry_level: Use new GCodeCommand wrappersKevin O'Connor2020-05-051-3/+3
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* manual_probe: Use new GCodeCommand wrappersKevin O'Connor2020-05-051-14/+14
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* z_tilt: Use new GCodeCommand wrappersKevin O'Connor2020-05-051-13/+14
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* probe: Use new GCodeCommand wrappersKevin O'Connor2020-05-051-53/+45
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* firmware_retraction: Use new GCodeCommand wrappersKevin O'Connor2020-05-051-21/+16
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* heaters: Use new GCodeCommand wrappersKevin O'Connor2020-05-051-10/+9
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* configfile: Use new GCodeCommand wrappersKevin O'Connor2020-05-051-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* extruder: Use new GCodeCommand wrappersKevin O'Connor2020-05-051-32/+28
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* cartesian: Use new GCodeCommand wrappersKevin O'Connor2020-05-051-2/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* toolhead: Use new GCodeCommand wrappersKevin O'Connor2020-05-051-23/+19
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* virtual_sdcard: Use new GCodeCommand wrappersKevin O'Connor2020-05-051-25/+25
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* skew_correction: Use new GCodeCommand wrappersKevin O'Connor2020-05-051-43/+40
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* respond: Use new GCodeCommand wrappersKevin O'Connor2020-05-051-12/+12
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* display_status: Use new GCodeCommand wrappersKevin O'Connor2020-05-051-5/+4
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* bed_mesh: Use new GCodeCommand wrappersKevin O'Connor2020-05-051-18/+16
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gcode_arcs: Use new GCodeCommand wrappersKevin O'Connor2020-05-051-13/+13
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gcode: Use new GCodeCommand wrappers in command handlersKevin O'Connor2020-05-051-82/+80
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gcode: Create new wrapper class for gcode command parametersKevin O'Connor2020-05-057-59/+102
| | | | | | | | Instead of passing a dictionary to the command handlers, create a wrapper class and pass that class to the command handlers. This can simplify the command handler code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* itersolve: Use more explicit list traversal in itersolve_generate_steps()Kevin O'Connor2020-05-041-28/+44
| | | | | | | | Avoid using doubles as flags when generating steps during "lead up to stepper activity". Instead, explicitly track how many inactive move entries are skipped and only generate steps for those entries. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* itersolve: Fix numeric stability of flush range timesKevin O'Connor2020-05-041-2/+6
| | | | | | | | | Don't assume the times passed to itersolve_gen_steps_range() are contained within the move. It's possible the checks in itersolve_generate_steps() may round to different values when converting the times to a relative move time. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* htu21d: Support for HTI21D family sensor on I2C bus (#2803)Lucio Tarantino2020-05-032-0/+239
| | | Signed-off-by: Lucio Tarantino <lucio.tarantino@gmail.com>
* linux: Adapt servo0 channels for beagleboard kernel 4.14.108-ti (#2746)Janne Grunau2020-05-031-3/+17
| | | | | | | | | | | | | | The beagleboard TI kernel 4.14 and 4.19 contain a commit which change the device names ("pwm: Create device class for pwm channels") from pwmN to pwm-${chip}:N. This commit was never merged into the upstream kernel. Decrease the number of pwm channels to a more reasonable 16. Increase the number of pwm chips to 8 since the replicape servo pwm outputs are on pwmchip4. Update replicape code to detect appropriate channel. Signed-off-by: Janne Grunau <janne-gh@jannau.net>
* clocksync: Don't filter any of the initial syncronization clock messagesKevin O'Connor2020-05-021-1/+2
| | | | | | | | Add a 50ms delay from the initial clock measurement to the first get_clock query. Disable the prediction_variance filter on each get_clock query so that none of those measurements are ignored. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gcode: Only call position_with_transform() when printer is readyKevin O'Connor2020-05-021-1/+2
| | | | | Signed-off-by: Eric Callahan <arksine.code@gmail.com> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* pid_calibrate: Fix module importKevin O'Connor2020-04-251-2/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* heaters: Make heater.py an "extras" moduleKevin O'Connor2020-04-2516-45/+50
| | | | | | | The heater logic is an independent module that does not need to be treated as part of the "core" klipper code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* heater: Move M105 command handling from gcode.py to heater.pyKevin O'Connor2020-04-255-49/+59
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* klippy: Add an is_shutdown() methodKevin O'Connor2020-04-251-3/+5
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gcode_button: Simplify script executionKevin O'Connor2020-04-251-25/+9
| | | | | | | | | It's no longer necessary to queue gcode scripts - gcode.run_script() now does that automatically. Also, make release_gcode config optional. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* probe: Rename probe_prepare/finalize to probe_prepare/finishKevin O'Connor2020-04-252-3/+3
| | | | | | | | The probe_finalize() name is used for callbacks in both the PrinterProbe and ProbePointsHelper classes. Rename the PrinterProbe callback to avoid confusion. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gcode: Rename respond() to respond_raw()Kevin O'Connor2020-04-248-31/+31
| | | | | | | | | | | Rename the method to make it more clear that it is a low-level call that should be rarely used. Also, change gcode_button.py, hall_filament_width_sensor.py, and tsl1401cl_filament_width_sensor.py to use respond_info() instead of respond_raw(). Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gcode: Don't export respond_error()Kevin O'Connor2020-04-241-6/+6
| | | | | | | Don't export the respond_error() method as callers should raise a gcode.error() instead. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* virtual_sdcard: No need to call gcode.respond_error() on disk errorKevin O'Connor2020-04-241-2/+0
| | | | | | | Report low-level disk errors via the log and use the normal sdcard mechanism to report end of sdcard print to gcode users. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gcode: Raise a gcode.error() from G20 commandKevin O'Connor2020-04-241-1/+1
| | | | | | | It's important to raise an error (instead of calling respond_error() ) so that a G20 will stop a virtual_sdcard print. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>