aboutsummaryrefslogtreecommitdiffstats
path: root/klippy
Commit message (Collapse)AuthorAgeFilesLines
...
* dotstar: report color data via get_status()Eric Callahan2021-06-181-0/+9
| | | | Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* neopixel: report color data via get_status() methodArksine2021-06-181-0/+10
| | | | Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* print_stats: add `cancelled` when `CANCEL_PRINT` used (#4366)Kamil Trzciński2021-06-143-9/+26
| | | | | | | | | | | Before this change, a `CANCEL_PRINT` set a `print_stats` to `paused` that would later be workaround-ed with `fluidd`/`mainsail` to re-define `CANCEL_PRINT`. This sets a proper canceled state, but additionally closes a file from a `virtual_sdcard` context for `canceled`/`error`, as this is no longer resumable from this point. Signed-off-by: Kamil Trzcinski <ayufan@ayufan.eu>
* extruder: expose `can_extrude` flag based on temperatureKamil Trzcinski2021-06-141-0/+1
| | | | | | | | | Sometimes an automated filament load is implemented, but extruder might not always extrude filament. This adds a flag to check if this operation is possible. Signed-off-by: Kamil Trzcinski <ayufan@ayufan.eu>
* stepper: Restore mcu_position on set_stepper_kinematics() and set_step_dist()Kevin O'Connor2021-06-111-15/+20
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stepcompress: Add missing functions to stepcompress.hKevin O'Connor2021-06-111-0/+4
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* klippy: Add a newline between initial error message and hint textKevin O'Connor2021-06-101-2/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* homing: Check for failures during multi-endstop homingKevin O'Connor2021-06-092-3/+10
| | | | | | If any endstop reports a failure, then stop homing on all endstops. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* mcu: Enable trdispatch infrastructure during homingKevin O'Connor2021-06-091-66/+138
| | | | | | | | | Separate out trsync handling from endstop handling in mcu.py code. Enable the low-level trdispatch C code. This is in preparation for multi-mcu homing. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* trdispatch: Support fast responses to trsync_state messagesKevin O'Connor2021-06-092-4/+244
| | | | | | | Add C code that can process trsync_state messages and dispatch responses with low-latency. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* serialqueue: Add serialqueue_send_one() helper functionKevin O'Connor2021-06-092-5/+14
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* serialqueue: Add "fast reader" supportKevin O'Connor2021-06-092-11/+69
| | | | | | | Add ability to run C code directly from the low-level socket reading thread. This enables host based low-latency handlers. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* msgblock: Add clock estimation helper functionsKevin O'Connor2021-06-097-22/+65
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* msgblock: Add msgblock_decode()Kevin O'Connor2021-06-092-0/+34
| | | | | | | Add function that can parse a simple VLQ encoded message to an array of integers. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* msgblock: Move message manipulation code from serialqueue.c to new msgblock.cKevin O'Connor2021-06-095-181/+201
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* pollreactor: Move C pollreactor code from serialqueue.c to its own fileKevin O'Connor2021-06-094-201/+226
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* trsync: Introduce new "trigger synchronization" supportKevin O'Connor2021-06-091-30/+37
| | | | | | | Separate out the stepper stopping code from endstop.c into its own trsync.c code file. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* probe: Call add_stepper() earlier in boot processKevin O'Connor2021-06-092-4/+6
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* mcu: Raise config_error (not protocol error) on pin enumeration errorsKevin O'Connor2021-06-092-19/+36
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* serialhdl: Support prepending a warn_prefix to error and log messagesKevin O'Connor2021-06-093-41/+55
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* bed_mesh: implement BED_MESH_OFFSETEric Callahan2021-06-081-3/+24
| | | | | | The BED_MESH_OFFSET gcode can be used to apply X and/or Y offsets the the mesh lookup. This allows printers with independent extruders to correct the Z adjustment when changing a tool. Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* bed_mesh: move the "fade offset" out of the ZMeshEric Callahan2021-06-081-15/+9
| | | | | | This is a temporary offset applied to the mesh used to fade toward a "target". For clarity, apply the fade offset when the final z calculation is made. SIgned-off-by: Eric Callahan <arksine.code@gmail.com>
* 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>