aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bltouch: BTLOUCH V3.0/V3.1 Enable 5V/OD mode set commands (#2540)FanDjango2020-02-234-1/+114
| | | Signed-off-by: Mike Stiemke <fandjango@gmx.de>
* mcu: Introduce new lookup_query_command() command wrapperKevin O'Connor2020-02-205-56/+73
| | | | | | | 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-203-35/+67
| | | | | | | | | | | 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>
* serialqueue: Support notification of when a command is processedKevin O'Connor2020-02-204-17/+79
| | | | | | | | | Add ability for the host code to get a notification when the ack for a command sent to the micro-controller is received. This is in preparation for improved detection of message loss between mcu and host. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* serialqueue: Remove unused serialqueue_encode_and_send() functionKevin O'Connor2020-02-202-19/+0
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* basecmd: No need for finalize_config command to send "config" responseKevin O'Connor2020-02-201-2/+1
| | | | | | | | The host code always issues a get_config command immediately after finalize_config, so there is no need to send the two config response messages. 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-192-10/+12
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* homing: Don't raise a TimeoutError from home_wait()Kevin O'Connor2020-02-195-19/+9
| | | | | | | 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-194-28/+26
| | | | | | | | | 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>
* reactor: Support multiple waiting timers on a single completionKevin O'Connor2020-02-191-5/+6
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* graph_extruder: Internal updates to graph calculationKevin O'Connor2020-02-181-48/+74
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* config: Fix minor typo in printer-lulzbot-taz6-2017.cfgKevin O'Connor2020-02-181-0/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* config: Update TAZ6 configurationChris Lee2020-02-181-10/+56
| | | | | | | | Support probing the corner washers for the bed tilt using G29, flesh out the rest of the configuration for the display, and add support for the Aerostruder (commented out by default). Signed-Off-By: Chris Lee <clee@mg8.org>
* 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>
* config: add mesh_min to printer-wanhao-duplicator-9-2018.cfg (#2525)Matt Shirley2020-02-171-1/+1
| | | | | This is a small change I forgot to make when copying my config to this template. Signed-off-by: Matt Shirley <mdshw5@gmail.com>
* menu: Set speed for move actions (#2520)Christian S2020-02-171-9/+9
| | | Signed-off-by: Christian Schnellrieder <schnellrieder.cs@gmail.com>
* docs: Recommend RPi 2 or later in Installation.mdKevin O'Connor2020-02-171-2/+1
| | | | | | Reported by @patrickkettner. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* 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>
* filament_switch_sensor: Collapse event disable flagsKevin O'Connor2020-02-171-12/+6
| | | | | | | | | | | | | | Introduce min_event_systime and rework the previous start_time, last_event_time, and event_running flags into this one state tracking variable. This also makes a minor change to the behavior of the event_delay - it is now calculated from the time the command completes execution (instead of from when the event is first detected). This may make a difference if there is a long running g-code command occurring during the detection event. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* filament_switch_sensor: Minor optimization to note_filament_present()Kevin O'Connor2020-02-171-5/+6
| | | | | | | Avoid calling into the OS to obtain the system time if the filament state hasn't changed. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* filament_switch_sensor: Add a get_status() methodArksine2020-02-171-0/+3
| | | | Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* filament_switch_sensor: Execute events using reactor callbacksArksine2020-02-171-4/+5
| | | | | | This removes the possibility of re-entry to callers of note_filament_present(). Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* filament_switch_sensor: Replace BaseSensor with RunoutHelperArksine2020-02-171-62/+58
| | | | | | | | Rather than inherit from the BaseSensor, filament sensor implementatons may instantiate the RunoutHelper and update the filament state via its note_filament_present method. Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* bltouch: Add support for stow_on_each_sampleFanDjango2020-02-152-8/+26
| | | | Signed-off-by: Mike Stiemke <fandjango@gmx.de>
* probe: Add multi_probe_begin() / multi_probe_end() callbacksKevin O'Connor2020-02-152-0/+39
| | | | | | | | Add support for notifying the low-level probing handlers that a multiple probe sequence is occurring. This is in preparation for the bltouch code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gcode: Add a "command_error" event notifierKevin O'Connor2020-02-151-0/+1
| | | | | | | Allow other modules to be notified if there is a gcode command error detected. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* homing: Add a "home_rails_begin" event notifierKevin O'Connor2020-02-152-6/+8
| | | | | | Also, rename the "homed_rails" event to "home_rails_end". Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* homing: Merge home_prepare()/home_finalize() into move_begin/move_end eventsKevin O'Connor2020-02-157-74/+63
| | | | | | | | Collapse the "homing:move_begin", "homing:move_end", home_prepare(), and home_finalize() into two new events: "homing:homing_move_begin" and "homing:homing_move_end". This simplifies the homing code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* bme280: handle read timeout exceptionsArksine2020-02-141-5/+12
| | | | Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* hall_filament_width_sensor: Add new filament sensortest3210-d2020-02-144-0/+320
| | | | Signed-off-by: Denis Ignatenko <deniss979@gmail.com>
* config: Update description of z_hop in safe_z_homeKevin O'Connor2020-02-141-8/+10
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: The stm32f1 can only reach 64Mhz when using an internal clockKevin O'Connor2020-02-141-0/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* configfile: Add get_status() to export raw config file informationKevin O'Connor2020-02-132-3/+19
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* config: Minor wording change to gcode_macro rename_existing descriptionKevin O'Connor2020-02-131-5/+5
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* test: Add printer-wanhao-duplicator-9-2018.cfg to printers.testKevin O'Connor2020-02-131-0/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* config: Add Wanhao Duplicator 9 MK1 (#2497)Matt Shirley2020-02-131-0/+106
| | | | | | | | | | | | | | | | | | | | | Also applies to the Monoprice Maker Pro MK1. This config is based on the version from Chris Barnes (https://www.facebook.com/Jarannis) found on https://pastebin.com/raw/wm8PQezy. This config was mostly working and I only had to change a few things: - updated key names for min_point and max_point to mesh_min and mesh_max - enabled PID control - tweaked bounds to allow movement during mesh leveling - removed all comments - decreased homing speed slightly - sane bed mesh sample defaults In response to Kevin O'Connor: - remove pressure_advance setting from extruder section - remove respond section - remove pause_resume section Signed-off-by: Matt Shirley <mdshw5@gmail.com>
* gcode_macro: Support overriding of builtin g-code commandsKevin O'Connor2020-02-122-2/+30
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gcode: Return previous handler from register_command(cmd, None)Kevin O'Connor2020-02-123-6/+7
| | | | | | | | When overriding a g-code command, allow the caller to obtain the previous command handler. Use this feature in homing_override and safe_z_home. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* query_endstops: Add get_status() method that reports the last query stateKevin O'Connor2020-02-122-3/+11
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* homing: Ability to set retract speed between homing moves (#2487)FanDjango2020-02-123-5/+11
| | | | | On the retract move between homing moves, use a different speed (typically a faster one). Signed-off-by: Mike Stiemke <fandjango@gmx.de>
* homing_heaters: Turn off heaters during homing/probing (#2486)FanDjango2020-02-124-0/+88
| | | Signed-off-by: Mike Stiemke <fandjango@gmx.de>
* stepper_enable: Add SET_STEPPER_ENABLE gcode command (#2463)David Smith2020-02-102-3/+34
| | | Signed-off-by: David Smith <davidosmith@gmail.com>
* tmc: Fix typo preventing stealthchop threshold from being setKevin O'Connor2020-02-091-2/+3
| | | | | | Fix typo introduced in commit 67b28522. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Fix typo that broke selection of alternate serial port pinKevin O'Connor2020-02-092-2/+2
| | | | | | Fix a typo in commit aea15250. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* graph_extruder: Add in older pa algorithms for referenceKevin O'Connor2020-02-031-0/+19
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* config: Fix generic-fysetc-f6.cfg stepper_z cs_pinKevin O'Connor2020-02-031-1/+1
| | | | | | Reported by @jourjine Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* delayed_gcode: Fix definition reference for UPDATE_DELAYED_GCODE (#2465)David Smith2020-02-031-1/+1
| | | Signed-off-by: David Smith <davidosmith@gmail.com>
* endstop_phase: Query the stepper step_distance from the stepper objectKevin O'Connor2020-02-011-23/+39
| | | | | | | Don't obtain the step_distance from the config, instead obtain step_distance from the instantiated stepper object. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* tmc: Query the stepper step_distance from the stepper objectKevin O'Connor2020-02-012-17/+28
| | | | | | | Don't obtain the step_distance from the config, instead obtain step_distance from the instantiated stepper object. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>