aboutsummaryrefslogtreecommitdiffstats
path: root/klippy
Commit message (Collapse)AuthorAgeFilesLines
* endstop_phase: Unify phase conversion codeKevin O'Connor2021-06-061-80/+87
| | | | | | | Introduce a new PhaseCalc class and use that for both homing and ENDSTOP_PHASE_CALIBRATE. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* resonance_tester: Set max_accel ignoring the limit from the config (#4174)Dmitry Butyugin2021-06-061-15/+23
| | | Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
* endstop_phase: Add support for reporting phase information via get_status()Kevin O'Connor2021-06-031-14/+32
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* z_tilt: expose an 'applied' status to allow macros to skip QGL/Z_TILT_ADJUST ↵Michael Rose2021-06-022-2/+29
| | | | | | | | | | | | | | (#4313) This is useful for macros that'd like to skip QGL if already leveled, e.g.: ``` {% if not printer.quad_gantry_level.applied %} QUAD_GANTRY_LEVEL {% endif %} ``` Signed-off-by: Michael Rose <elementation@gmail.com>
* neopixel: add sync parameter to prevent waking toolhead (#4339)Paul McGowan2021-06-022-18/+42
| | | | | | | neopixel: add sync param to prevent waking toolhead dotstar: refactor to match neopixel methods and add sync parameter Signed-off-by: Paul McGowan <mental405@gmail.com>
* gcode: Update gcode descriptions (#4335)Stefan Dej2021-06-026-16/+38
| | | | | | | | | | Add help description to HELP Add help description to RESPOND Add help description to MEASURE_AXES_NOISE, TEST_RESONANCES and SHAPER_CALIBRATE Add help description to PAUSE, RESUME, CLEAR_PAUSE and CANCEL_PRINT Add help description to GET_POSITION Add help description to SET_RETRACTION and GET_RETRACTION Signed-off-by: Stefan Dej <meteyou@gmail.com>
* stepper: Remove set_tag_position() codeKevin O'Connor2021-05-2916-60/+57
| | | | | | Have callers store the stepper positions in a dict. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stepper: Improve get_past_commanded_position()Kevin O'Connor2021-05-292-8/+8
| | | | | | | | Pass a print_time instead of a clock to get_past_commanded_position(). Fix calculation on steppers that home and use an inverted direction pin. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gcode_macro: add description property (#4317)Alex Zellner2021-05-261-1/+1
| | | Signed-off-by: Alex Zellner <alexander.zellner@googlemail.com>
* gcode_macro: Disallow whitespace in macro name (#4312)Florian Heilmann2021-05-261-0/+4
| | | Signed-off-by: Florian Heilmann <Florian.Heilmann@gmx.net>
* 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>
* kinematics: Add hybrid-corexy and hybrid-corexz (#4229)Tircown2021-05-032-0/+200
| | | Signed-off-by: Fabrice GALLET <tircown@gmail.com>
* klippy: Report known software versions on a protocol error during connectionKevin O'Connor2021-05-022-3/+16
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* endstop: Report trigger time in endstop_query responseKevin O'Connor2021-04-301-2/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* 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: Remove min_stop_interval from mcu codeKevin O'Connor2021-04-302-3/+2
| | | | | | | Now that the host never uses a min_stop_interval, remove it from the mcu code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* toolhead: Do not limit SET_VELOCITY_LIMIT to values specified in configKevin O'Connor2021-04-301-8/+4
| | | | | | | Allow a larger velocity, accel, and square_corner_velocity than what is specified in the config file. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stepper: Do not set min_stop_interval in micro-controllerKevin O'Connor2021-04-3012-67/+5
| | | | | | | | 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>
* gcode: Generate M115 output even if command not sent from gcode pseudo-terminalKevin O'Connor2021-04-281-1/+4
| | | | 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>
* stepper: Register a config default for calculated homing_positive_dirKevin O'Connor2021-04-161-0/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* 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>
* stepcompress: Improve numerical stability of step+dir+step filterKevin O'Connor2021-04-111-1/+1
| | | | | | | Apply the step+dir+step filter even if, for some reason, a negative time is found. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* 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>
* toolhead: Export the print_stalls value via get_status()Kevin O'Connor2021-04-091-0/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* 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>