aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras
Commit message (Collapse)AuthorAgeFilesLines
...
* safe_z_home: Simplify logic and fix edge caseFlorian Heilmann2021-05-261-19/+13
| | | | Signed-off-by: Florian Heilmann <Florian.Heilmann@gmx.net>
* loop_sdcard: Add loopable SD card file sectionsJason S. McMullan2021-05-262-3/+96
| | | | | | | | | | | | | | | | | | | | | To support continuous belt printing, add nestable repeat loop support via an `[sdcard_loop]` module. Supported G-Code: - SDCARD_LOOP_BEGIN COUNT=n ; Loop for N times, or infinitely if N is 0 - SDCARD_LOOP_END ; End of loop - SDCARD_LOOP_DESIST ; Complete all loops without iterating Marlin M808 compatibility example in `config/sample-macros.cfg`: - M808 Ln ; Loop for N times, or infinitely if N is 0 - M808 ; End of loop - M808 K ; Complete all loops without iterating Added unit tests in test/klippy/sdcard_loop.test See https://reprap.org/wiki/G-code#M808:_Set_or_Goto_Repeat_Marker Signed-off-by: Jason S. McMullan <jason.mcmullan@gmail.com>
* filament_motion_sensor: add get_status (#4281)Alex Zellner2021-05-111-0/+1
| | | Signed-off-by: Alex Zellner <alexander.zellner@googlemail.com>
* virtual_sdcard: fix check for case sensitive filesArksine2021-05-111-1/+2
| | | | Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* menu: Fixed typo when reading `print_stats.state` (#4261)Dany Yanev2021-05-061-2/+2
| | | | | Fixed typo when reading `print_stats.state` causing some of the menus to now show up. Signed-off-by: Dany Yanev <yanev89@gmail.com>
* adxl345: Use "clock" suffix instead of "time" in commandsKevin O'Connor2021-04-301-5/+5
| | | | | | The debugging code knows how to handle fields that end in "clock". Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* pulse_counter: Use "clock" suffix instead of "time" in commandsKevin O'Connor2021-04-301-5/+6
| | | | | | The debugging code knows how to handle fields that end in "clock". Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stepper: Do not set min_stop_interval in micro-controllerKevin O'Connor2021-04-302-2/+0
| | | | | | | | The min_stop_interval safety check is fragile and leads to a notable amount of complexity. Avoid these issues by not programming this safety check. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* probe: Use original XY position on multiple probe samplesKevin O'Connor2021-04-281-2/+2
| | | | | | | | | On some kinematics it's possible for the XY position to change slightly during a probing move. Return back to the original XY position on a probe lift so each probe attempt starts at the same nominal position. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* Revert "endstop_phase: wip"Kevin O'Connor2021-04-281-7/+0
| | | | | | | | This reverts commit f2e4653ca4b0ed9ee2c8d7b0aa12a5e3973fa285. Revert incomplete testing code that was accidentally committed. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* endstop_phase: wipKevin O'Connor2021-04-281-0/+7
|
* resonance_tester: Refactored the testing codeDmitry Butyugin2021-04-281-109/+68
| | | | Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
* screws_tilt_adjust: Add MAX_DEVIATION parameter for bed level invariant.Johannes Stuettgen2021-04-281-0/+8
| | | | | | | This is useful when a saved bed mesh is used to ensure that the bed level has not drifted too far from where it was when the mesh was created. Signed-off-by: Johannes Stuettgen <johannes.stuettgen@gmail.com>
* probe: Add deactivate_on_each_sample: param for Probe (#4161)nlef2021-04-241-8/+25
| | | Signed-off-by: Nick Lefskiy <n.lefskiy@yandex.ru>
* adxl345: Verify the register writes, added debug adxl345 commandsDmitry Butyugin2021-04-241-20/+75
| | | | Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
* palette2: Fix get_status (#4171)Clifford Roche2021-04-151-1/+3
| | | Signed-off-by: Clifford Roche <clifford.roche@gmail.com>
* palette2: Add ping variation + ping status reports (#4114)Clifford Roche2021-04-141-20/+45
| | | Signed-off-by: Clifford Roche <clifford.roche@gmail.com>
* bed_mesh: introduce "faulty_regions" optionArksine2021-04-101-5/+167
| | | | | | Users may define "faulty regions", locations within the mesh where a probed value is unreliable. When bed mesh generates points it will substitute points in faulty regions with up to 4 points nearest to the region. After calibration is complete the Z values at these points will be averaged and assigned to the original value inside the faulty region. Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* bed_mesh: Allow user to clear the relative_reference_index via gcodeArksine2021-04-101-0/+2
| | | | | | If a negative number is specified for the RELATIVE_REFERENCE_INDEX parameter clear the internal relative_reference_index. Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* statistics: Export the OS and process load in a get_status() methodKevin O'Connor2021-04-091-17/+45
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* pca9533: RGB support for the mightyboard (#4150)le-Bark2021-04-091-0/+53
| | | Signed-off-by: Marc-André Denis <marcadenis@msn.com>
* hd44780_spi: added lcd support to the mightyboard (#4121)le-Bark2021-04-072-1/+127
| | | Signed-off-by: Marc-André Denis <marcadenis@msn.com>
* resonance_tester: Fixed multi-point resonance testingDmitry Butyugin2021-04-072-3/+6
| | | | Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
* bed_mesh: Perform initialization from klippy:connect instead of klippy:readyKevin O'Connor2021-04-021-3/+0
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* bltouch: Minor indentation changeKevin O'Connor2021-04-021-3/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* bltouch: Raise the probe as soon as the endstop triggersKevin O'Connor2021-04-021-9/+24
| | | | | | | | Start the raise sequence once the endstop notification arrives. This can reduce the response time as it does not require waiting for the homing sequence to fully finalize. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* bltouch: Use hmove.check_no_movement() to verify bltouch deployedKevin O'Connor2021-04-021-10/+3
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* pause_resume: Perform setup via "klippy:connect" instead of "klippy:ready"Kevin O'Connor2021-04-011-2/+3
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* bed_mesh: lookup the toolhead object in "handle_connect"Arksine2021-04-011-1/+4
| | | | Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* gcode_move: Make sure to call reset_last_position() in _handle_ready()Kevin O'Connor2021-03-311-0/+1
| | | | | | | | | | | If reset_last_position() is invoked prior to the printer being "ready", then the transform may not be properly accounted for. Handle this by calling reset_last_position() when the printer becomes "ready". This should fix some "must home first" errors on extrude-only moves. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* skew_correction: Register during "connect" phase instead of "ready" phaseKevin O'Connor2021-03-311-3/+3
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* homing: Pass the HomingMove class to homing_move_begin/end eventsKevin O'Connor2021-03-295-22/+22
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* homing: Move homing logic from manual_stepper.py to homing.pyKevin O'Connor2021-03-293-53/+55
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* homing: Extract out movement verification to new check_no_movement()Kevin O'Connor2021-03-291-19/+22
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* homing: Separate homing/probing movement logic to its own classKevin O'Connor2021-03-291-29/+37
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* homing: Move home_axes() into cmd_G28()Kevin O'Connor2021-03-291-8/+7
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* homing: Minor simplification of verify_movement trackingKevin O'Connor2021-03-291-7/+4
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* homing: Move low-level probing logic from probe.py to homing.pyKevin O'Connor2021-03-292-13/+13
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* output_pin: Fix bug in setting of self.resend_intervalKevin O'Connor2021-03-271-1/+2
| | | | | | | Only set resend_interval if a mcu_duration is specified. This fixes a bug introduced in commit 861144d8. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* hall_filament_width_sensor: fix range check error (#4113)Denis Ignatenko2021-03-271-2/+2
| | | Signed-off-by: Denis Ignatenko <deniss979@gmail.com>
* output_pin: Make sure to not use a cycle_time or max_duration over 5 secondsKevin O'Connor2021-03-261-5/+8
| | | | | | | Times longer than 5 seconds may result in a 32bit ticks overflow in the micro-controller (for fast micro-controllers). Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* output_pin: Increase time host has to confirm a pin settingKevin O'Connor2021-03-261-6/+7
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* output_pin: Support setting max_duration (#3995)Pascal P2021-03-261-5/+33
| | | | | Also added documentation for using powered tools. Signed-off-by: Pascal Pieper <accounts@pascalpieper.de>
* palette2: Add support for P2 devices (#4057)Clifford Roche2021-03-263-11/+639
| | | | | Module which bring support for P2 devices running in connected mode. This enables using a Palette2 directly with Klippy without Octoprint, or without Palette2 plugins for Octoprint which are not functional out of the box with Klipper. Signed-off-by: Clifford Roche <clifford.roche@gmail.com>
* replicape: Don't require a host alias for the enable_pin defaultKevin O'Connor2021-03-251-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* menu: changes in tune menu according to #4023 (#4086)Janar Sööt2021-03-231-3/+3
| | | | | | - set 1% as input minimum for speed and flow - set speed maximum from 200% to 500% Signed-off-by: Janar Sööt <janar.soot@gmail.com>
* graph_accelerometer: Support axis-level comparison of adxl345 dataDmitry Butyugin2021-03-201-0/+4
| | | | Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
* shaper_calibrate: Reduced min shaper freqs to match max_accel ~= 1500Dmitry Butyugin2021-03-201-6/+6
| | | | Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
* shaper_calibrate: Ignore vibrations below max_psd / 20 thresholdDmitry Butyugin2021-03-201-8/+16
| | | | | | | | | | | The input shaper can only reduce vibrations by 20x. Therefore, the best-case achievable vibrations level is max(psd) / 20. Any vibrations below that level can be ignored for the prupose of input shaper scoring. This allows tuning script to ignore wide tails of resonances, because it is not helpful to try to reduce them with input shaping. Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
* shaper_calibrate: Estimate max_accel to avoid excessive smoothingDmitry Butyugin2021-03-201-8/+34
| | | | Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>