aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras
Commit message (Collapse)AuthorAgeFilesLines
* heater: Move M105 command handling from gcode.py to heater.pyKevin O'Connor2020-04-252-3/+3
| | | | 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-247-25/+25
| | | | | | | | | | | 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>
* 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>
* respond: Simplify M118 handlingKevin O'Connor2020-04-241-16/+13
| | | | | | | | No need to check for '#original' in params - it's always there. Properly handle a lower case m118 command. Don't register a help text for the legacy M118 g-code command. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* z_tilt: Raise a gcode.error() instead of directly calling respond_error()Kevin O'Connor2020-04-242-11/+7
| | | | | | | Raising an error (instead of reporting an error) is important as only a raised error will stop a print from virtual_sdcard. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gcode_arcs: Disable E moves in absolute extrude modeKevin O'Connor2020-04-231-7/+4
| | | | | | | | Commit 402110f6 didn't actually fix absolute extrude mode. For now, report an error if an extrude move is requested in absolute extrude mode. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gcode_arcs: Minor cleanup of planArc()Kevin O'Connor2020-04-221-42/+27
| | | | | | | | Fix linear_travel optimization. Use "2*pi" instead of "radians(360)". Always emit at least one segment and always end at the final target coordinates. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gcode_arcs: Fix Z moves and E movesKevin O'Connor2020-04-221-10/+16
| | | | | | | | Fix Z moves so that the movement is spaced out among the arc movements. Fix extrude moves when in absolute extrude mode. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gcode_arcs: Simplify parameter parsingKevin O'Connor2020-04-221-84/+37
| | | | | | | | | | Use the normal gcode.get_float() mechanism for extracting parameters from the g-code command. Don't register descriptions for the G2/G3 commands as the convention is to only use descriptions for "extended g-code commands". Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* safe_z_home: Simplify check for axes to homeKevin O'Connor2020-04-221-5/+3
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* neopixel: Allow host software to configure neopixel timingKevin O'Connor2020-04-151-2/+9
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* bed_mesh: Fix typo (#2692)Piotr Usewicz2020-04-141-1/+1
| | | Signed-off-by: Piotr Usewicz <piotr@layer22.com>
* Revert "bltouch: No need to pause the toolhead for PWM off commands"Kevin O'Connor2020-04-041-6/+4
| | | | | | | | | | This reverts commit 5c8d15bbee9b1c4c82e3a2ecb5c63ce37f4a8dcb. The lower_probe() code was already manually optimizing the timing of the pwm disable, and that conflicted with the optimization in commit 5c8d15bb. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* bltouch: No need to pause the toolhead for PWM off commandsKevin O'Connor2020-04-021-4/+6
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* bltouch: Don't assume reset will do a pin_up in test_sensor()Kevin O'Connor2020-04-021-9/+16
| | | | | | | | | | | Some clones don't raise the pin on a reset and the ANTClabs BL-Touch sometimes doesn't raise the pin either. Rework the (infrequently called) sensor test code to always issue a pin_up command before the touch command. Also, perform a reset and retry if the sensor test fails. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* bltouch: Call sync_print_time() on multi_probe_end()Kevin O'Connor2020-04-021-0/+1
| | | | | | | Be sure to fully raise the probe prior to starting any future toolhead movements in the multi_probe_end() case. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* bltouch: Apply reset command for a full second on a raise_probe() failureKevin O'Connor2020-04-021-2/+1
| | | | | | | | If an error is found during the pin_up_not_triggered check, then apply the reset command for a full second (instead of just 100ms). This gives the bltouch more time to check its internal state. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* bltouch: Separate out pin_up_not_triggered case in raise_probe()Kevin O'Connor2020-04-021-6/+9
| | | | | | | Simplify raise_probe() by separating out the pin_up_not_triggered case. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* bltouch: Don't raise an error in verify_state()Kevin O'Connor2020-04-021-18/+17
| | | | | | | Return the triggered state from verify_state() and update the callers to raise the error (if needed). Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* Allow manual_stepper to run in parallel than an other stepperJeremy Briffaut2020-03-231-3/+7
| | | | | Signed-off-by: Jeremy Briffaut <kakou@kakou.org> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* statistics: Exit loop as soon as MemAvailable foundKevin O'Connor2020-03-221-0/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* statistics: Add system statsKevin O'Connor2020-03-221-2/+18
| | | | | | | Report os load, process cpu time, and system available memory to each statistics report. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* display: Remove unused self.lcd_type variableKevin O'Connor2020-03-211-3/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* manual_stepper: Fix sensorless endstop for manual_stepper (#2621)kakou-fr2020-03-201-0/+11
| | | Signed-off-by: Jeremy Briffaut <kakou@kakou.org>
* display: Use the active extruder in the default 16x4 screen layoutKevin O'Connor2020-03-131-1/+3
| | | | | | | Change the default layout to show the active extruder (not always the first extruder). Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* display: Use a separate display group for 16x4 multiple extrudersKevin O'Connor2020-03-131-57/+73
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* display: Fix percent progress rendering on 16x4 multi-extruder layoutKevin O'Connor2020-03-081-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* display: add support for multiple displaysArksine2020-03-082-4/+21
| | | | Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* menu: Remove the "test" menu from the default menuKevin O'Connor2020-03-081-20/+0
| | | | | | | It is likely only developers will be interested in testing the menu system, so no need to have it in the default menu. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* menu: Disable support for "deck" and "card" menu itemsKevin O'Connor2020-03-082-383/+2
| | | | | | | | Disable support for customizing the main lcd display content via the menu system. Advise users to use the new display_data config sections as a replacement. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* display: Replace hard-coded display with new config based displayKevin O'Connor2020-03-084-169/+334
| | | | | | | | | | Introduce a new config based system for specifying the on-screen contents of an lcd screen. The default screen configuration (found in klippy/extras/display/display.cfg) is the same as the previous hard-coded display, so this should not change behavior for existing users. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* display_status: Separate out M73 and M117 handling to new moduleKevin O'Connor2020-03-082-75/+71
| | | | | | | Move M73 and M117 handling from display.py to a new display_status.py module. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* tmc_uart: Use nominal mcu frequency in baud calculationKevin O'Connor2020-03-061-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* adc_temperature: Add builtin definition for PT1000 sensorsKevin O'Connor2020-03-051-2/+12
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* tmc5160: Support setting GLOBALSCALER to fine tune current selectionKevin O'Connor2020-03-041-4/+22
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* safe_z_home: Support note_z_not_homed() in kinematics (#2500)David Smith2020-03-011-0/+2
| | | Signed-off-by: David Smith <davidosmith@gmail.com>
* hall_filament_width_sensor: Added virtual runout sensor (#2535)Denis Ignatenko2020-03-011-5/+11
| | | Signed-off-by: Denis Ignatenko deniss979@gmail.com
* heater: Fix misspelling of CelsiusKevin O'Connor2020-02-273-16/+16
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* bltouch: BTLOUCH V3.0/V3.1 Enable 5V/OD mode set commands (#2540)FanDjango2020-02-231-0/+57
| | | Signed-off-by: Mike Stiemke <fandjango@gmx.de>
* mcu: Introduce new lookup_query_command() command wrapperKevin O'Connor2020-02-202-15/+16
| | | | | | | Use new mcu.lookup_query_command() for all commands that query information from the micro-controller. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* serialhdl: Convert queries to use new notify message ack systemKevin O'Connor2020-02-201-2/+2
| | | | | | | | | | | Convert standard queries to use the acknowledgments of the sent command to determine if the response was received or not. This also controls command retransmissions (should the response have been lost). The tmc_uart.py will continue to use the old mechanism as the tmcuart responses are not sent synchronously with the query command. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* tmc: Revert incorrect changes to TPWMTHRS settingKevin O'Connor2020-02-201-26/+18
| | | | | | | | | | | | | | It's not valid to set the TPWMTHRS in a "klippy:connect" event handler because the TMCVirtualPinHelper and TMCCommandHelper classes were expecting that field to be set during the config reading phase. Revert "tmc: Fix typo preventing stealthchop threshold from being set" This reverts commit 7d76067ff9efaf75808b05f768dfef4295251ede. Revert "tmc: Query the stepper step_distance from the stepper object" This reverts commit 67b285224952749583d7bb3af3eb6397f63b492e. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* manual_stepper: Support ignoring errors on STOP_ON_ENDSTOPKevin O'Connor2020-02-191-3/+4
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* homing: Don't raise a TimeoutError from home_wait()Kevin O'Connor2020-02-193-10/+5
| | | | | | | Change home_wait() to return if the homing operation completed succesfully or not. This simplifies the callers. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* homing: Replace notify callback with a completionKevin O'Connor2020-02-191-4/+3
| | | | | | | | | Update the endstop code to return its trigger completion object during home_start(). Update the toolhead class to take a completion object (instead of creating its own). This reduces the number of intermediate callbacks needed during a homing operation. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* probe: Don't allow errors to propagate from "gcode:command_error" eventKevin O'Connor2020-02-181-2/+8
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* menu: Set speed for move actions (#2520)Christian S2020-02-171-9/+9
| | | Signed-off-by: Christian Schnellrieder <schnellrieder.cs@gmail.com>
* filament_switch_sensor: Query "printing" status instead of tracking itKevin O'Connor2020-02-171-27/+9
| | | | | | | It's simpler to query the "printing" status from the idle_timeout module on an event than it is to track changes to the printing status. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>