Toby Harper
f851cfae46
gcode_arcs: increment absolute e coord for each arc segment ( #3162 )
...
Arc travel was working but extrusion in absolute mode seemed not to be happening at all. This was because the E coord being sent with each G1 segment of the arc was not incrementing, effectively the same value was being sent over and over so the total extrusion for the whole arc was the amount for just one segment which is an extremely tiny amount.
My change increments e_base by e_per_move for each subsequent coord when in absolute extrude mode which results in the correct absolute E value being sent for each segment.
Signed-off-by: Toby Harper <toby@fuith.org>
2020-08-07 12:15:03 -04:00
bondus
c9e7119a93
fan_generic: Add support for named fans and gcode to control them ( #3054 )
...
Signed-off-by: Pontus Borg <liquidpontus@yahoo.se>
2020-08-07 11:39:44 -04:00
Arksine
3eefc037c5
polar: fix limit_z default value
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-06 14:31:42 -04:00
Arksine
27ef58642e
webhooks: Implement StatusHandler class
...
This class provides endpoints that allow connected hosts to fetch the state of printer objects and subscribe to state "pushed" over the connection.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-06 14:30:48 -04:00
Arksine
cde7e75139
webhooks: Add call_remote_method helper function
...
This may be used to execute formatted RPC calls.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-06 14:30:13 -04:00
Kevin O'Connor
447374f73e
gcode: Separate IO handling to its own class
...
Move the pseudo-tty IO handling from the main gcode class to a new
gcode_io class. This simplifies the main gcode class.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-08-06 14:21:08 -04:00
Kevin O'Connor
795bd03b33
webhooks: Directly invoke printer.invoke_shutdown()
...
No need to indirectly shutdown via the gcode class - just call
printer.invoke_shutdown() directly.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-08-06 14:21:08 -04:00
Kevin O'Connor
4346d37c06
webhooks: Introduce add_early_printer_objects()
...
Create the initial gcode class via new module level
add_early_printer_objects() function.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-08-06 14:21:08 -04:00
Kevin O'Connor
8c8b9b1812
gcode: Introduce add_early_printer_objects()
...
Create the initial gcode class via new module level
add_early_printer_objects() function.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-08-06 14:21:08 -04:00
Kevin O'Connor
0d930bf871
gcode: Pass the pseudo-tty fd via the start_args system
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-08-06 14:21:08 -04:00
Kevin O'Connor
b66dd1a60f
gcode: Allow handlers to be registered for all gcode output
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-08-06 14:21:08 -04:00
Kevin O'Connor
8ed1696624
gcode: Only write to the gcode pseudo-tty if it appears to be active
...
If there isn't a reader of the output pipe it can lead to the
generation of a large number of errors. Only attempt to write if it
appears the pipe is active.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-08-06 14:21:08 -04:00
Arksine
b9f48e634e
print_stats: Add virtual_sdcard state tracking
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-05 13:46:24 -04:00
Arksine
6b1ad715aa
print_stats: stat tracking for virtual sdcard prints in progress
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-05 13:46:24 -04:00
Arksine
463194b1a3
virtual_sdcard: update get_status method
...
Do not reset progress to zero while paused. Report 'is_active' and 'file_position'.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-05 13:46:24 -04:00
Arksine
963d7c247b
virtual_sdcard: add SDCARD_PRINT_FILE gcode
...
SDCARD_PRINT_FILE allows Klipper to load and start the print for any
gcode file within the virtual_sdcard path, including subdirectories.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-05 13:46:24 -04:00
Arksine
af39a209f3
virtual_sdcard: add SDCARD_RESET_FILE gcode
...
This allows the user to close a currently loaded file and reset the virtual_sdcard's state.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-05 13:46:24 -04:00
Florian Heilmann
10987003b0
safe_z_home: Make sure X and Y are homed before homing Z ( #3153 )
...
In it's current behavior, safe_z_home will attempt to home Z if it thinks the toolhead is above the z endstop even if the motors have since been disabled and the toolhead was moved to another position
Signed-off-by: Florian Heilmann <Florian.Heilmann@gmx.net>
2020-08-05 11:52:23 -04:00
Arksine
3143e31aca
temperature_sensor: report min/max measured temp via get_status
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-01 15:56:51 -04:00
Arksine
d37374974d
filament_switch_sensor: report "enabled" state via get_status
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-01 15:56:51 -04:00
Arksine
c22d5b2444
toolhead: report velocity and accel via get_status
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-08-01 15:56:51 -04:00
Kevin O'Connor
1f7c3fc8ec
gcode: Report the final print_time in debuginput mode
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-07-30 12:53:59 -04:00
Voron
9213646c63
corexz: Add CoreXZ kinematics ( #3129 )
...
Add a CoreXZ kinematics
Signed-off-by: Maks Zolin <mzolin@vorondesign.com>
2020-07-30 12:42:23 -04:00
Arksine
4795c0896d
bed_mesh: Move profile management to its own class
...
This streamlines the BedMeshCalibrate class, making it only resposible for configuring and executing the calibration procedure.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-07-25 12:05:29 -04:00
Arksine
dbec03abd9
bed_mesh: track the probed_matrix and mesh_params exclusively in the ZMesh class
...
Rather than have multiple classes keep a reference to these items, keep them in the z_mesh.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-07-25 12:05:29 -04:00
Arksine
41eedda5d6
bed_mesh: differentiate between "mesh_config" and "mesh_params"
...
This fixes an issue where a new profile is not properly saved after a restart.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-07-25 12:05:29 -04:00
Arksine
7c8b60b40e
bed_mesh: round x and y positions received via the finalize callback
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
Update bed_mesh.py
2020-07-25 12:05:29 -04:00
Arksine
6458def588
bed_mesh: add get_status() method
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-07-25 12:05:29 -04:00
Kevin O'Connor
db05938a5f
servo: Set initial value via mcu_servo.setup_start_value()
...
Using the setup_start_value() method avoids the PWM output line
transitioning to an intermediate state prior to setting the initial
value.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-07-25 11:39:39 -04:00
Kevin O'Connor
428a8d4881
servo: Remove servo ENABLE parameter
...
Allow one to disable servos via `SET_SERVO WIDTH=0` instead of using
an explicit ENABLE parameter.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-07-25 11:39:39 -04:00
Kevin O'Connor
122fd88c6a
mcu: Reset pwm and digital output pins to start values on a host restart
...
This makes sure output pins are reset to their defaults when the host
is restarted and the micro-controller is not.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-07-25 11:36:44 -04:00
Kevin O'Connor
d204cc1fb7
mcu: Add support for commands to send only on a host restart
...
Add a new "on_restart" parameter to mcu.add_config_cmd() and only send
those commands on a host restart that does not involve a
micro-controller restart.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-07-25 11:36:44 -04:00
combolek
3835654116
lm75: Added support for LM75/LM75A I2C connected temperature sensors ( #3101 )
...
Signed-off-by: Boleslaw Ciesielski <combolek@users.noreply.github.com>
2020-07-19 20:18:54 -04:00
Iakabos
b0901daa85
display: Add configuration options for OLED displays ( #3084 )
...
Add user-configurable contrast, vcomh (affects "smearing"), and invert options for SSD1306/SH1106 type OLED displays.
Signed-off-by: James Esau <james_esau@hotmail.com>
2020-07-19 20:18:08 -04:00
Kevin O'Connor
25b6bc2f73
mcu: Remove undocumented "custom" config parameter
...
The "custom" config parameter is not documented and has not been
recommended in years.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-07-19 12:07:53 -04:00
Arksine
180f44b876
webhooks: fix lambda wrapper around _process_request
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-07-13 18:39:15 -04:00
Kevin O'Connor
af981432f0
thermistor: Add in definition for "SliceEngineering 450" thermistor
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-07-11 12:50:58 -04:00
Dmitry Butyugin
5dc0c8aac0
input_shaper: Fixed C module compilation on older gnu90 compilers
...
For example, Raspbian GNU/Linux 8 (jessie) uses an old GCC version 4.9.2
which uses -std=gnu90 by default.
Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
2020-07-07 17:50:51 -04:00
Arksine
cd8f250e84
webooks: do not connect if debuginput is enabled
...
Changing this check from debugoutput to debuginput allows remote applications to perform tests against Klippy without an MCU connected.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-07-06 12:57:50 -04:00
Arksine
bfbdc04c02
webhooks: process request handlers using a Reactor Callback
...
This prevents _process_data from blocking and becoming reentrant.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-07-06 12:57:50 -04:00
Kevin O'Connor
3a57608642
fan: Separate out the part cooling fan code from the generic fan code
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-07-05 21:04:04 -04:00
Dmitry Butyugin
4bdc11a8b3
input_shaper: Initial support of input shaping ( #3032 )
...
Input shaping can help to reduce printer vibrations due to resonances
and eliminate or reduce ghosting in prints.
Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
2020-07-05 20:54:38 -04:00
Kevin O'Connor
c6b652044d
stepper: Make sure to reload trapq in set_stepper_kinematics()
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-06-30 20:20:16 -04:00
Arksine
014c06f8a2
klippy: return message category in get_state_message()
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-06-24 19:07:33 -04:00
Arksine
2d2c09a0a3
webhooks: protect command processing from re-entry
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-06-24 19:07:33 -04:00
Arksine
a342770ac5
pause_resume: Add CANCEL_PRINT gcode
...
Register API endpoints for "pause_resume/pause", "pause_resume/resume" and "pause_resume/cancel".
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-06-24 19:07:33 -04:00
Arksine
a31dd0ff0e
query_endstops: register "query_endstops/status" endpoint
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-06-24 19:07:33 -04:00
Arksine
72962c5ca2
gcode: add webhooks support
...
Register "gcode/script", "gcode/help", "gcode/restart", and "gcode/firmware_restart" endpoints.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-06-24 19:07:33 -04:00
Arksine
14ac453861
klippy: Instantiate the webhooks module
...
Add 'cpu_info' to start_args so it may be reported via the "info" endpoint in webhooks.py.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-06-24 19:07:33 -04:00
Arksine
475f543790
webhooks: Initial implementation
...
The webhooks module provides a means for Klippy to register remote API endpoints.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-06-24 19:07:33 -04:00
Denis Ignatenko
b3298d8992
hall_filament_width_sensor: Added width logging ( #2981 )
...
Signed-off-by: Denis Ignatenko deniss979@gmail.com
2020-06-16 13:36:49 -04:00
Arksine
4c571ea9ac
bme280: fix reported measured time
...
This allows the bme280 to correctly work with the temperature_fan module.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2020-06-16 09:53:10 -04:00
Kevin O'Connor
65ae08ef21
menu_keys: Add a register_button() helper method
...
Use a helper method to register each button handler.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-06-15 17:23:34 -04:00
Kevin O'Connor
8d9566b945
menu_keys: Reschedule long-click timer on each click
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-06-15 17:23:34 -04:00
Kevin O'Connor
7d8ade74e8
menu_keys: Move button handling from menu.py to new file menu_keys.py
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-06-15 17:23:34 -04:00
Kevin O'Connor
a1fc1ac214
configfile: Use "import ConfigParser as configparser"
...
This minor change makes it easier to port the code to Python3.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-06-15 17:15:53 -04:00
Kevin O'Connor
40da3f406a
queuelogger: Use "import Queue as queue" for improved Python3 compatibility
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-06-15 17:15:53 -04:00
Kevin O'Connor
4905667ee2
reactor: Use "import Queue as queue" for improved Python3 compatibility
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-06-15 17:15:53 -04:00
Kevin O'Connor
0e9aa76066
uc1701: Update bus import to "from .. import bus"
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-06-15 17:15:53 -04:00
Kevin O'Connor
f931da1b87
extras: Use "from . import module" for relative imports
...
Use alternate import syntax to improve Python3 compatibility.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-06-15 17:15:53 -04:00
Kevin O'Connor
6edc2946db
sx1509: Improve Python3 compatibility
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-06-15 17:15:53 -04:00
Kevin O'Connor
4b231470ed
delta_calibrate: Improve Python3 compatibility
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-06-15 17:15:53 -04:00
Kevin O'Connor
8c96e9dd11
bed_mesh: Improve Python3 compatibility
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-06-15 17:15:53 -04:00
Kevin O'Connor
0ccf3018d5
msgproto: Improve Python3 compatibility
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-06-15 17:15:53 -04:00
Kevin O'Connor
8d8c239e47
util: Improve Python3 compatibility
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-06-15 17:15:53 -04:00
Kevin O'Connor
f5cdfad333
mcu: Avoid using "async" for variables as it conflicts with Python3
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-06-15 17:15:53 -04:00
Kevin O'Connor
c4de0bba50
pid_calibrate: Avoid internal error on a shutdown
...
If a shutdown occurs during a PID_CALIBRATE command (eg, due to a
heater problem) then exit cleanly instead of throwing an internal
error.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-06-14 11:34:04 -04:00
Kevin O'Connor
519c3ad5ee
uc1701: Optimize swizzle_bits() code
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-06-12 09:37:37 -04:00
Kevin O'Connor
9465618adb
display: Rework write_graphics() to take one character cell at a time
...
Change write_graphics() from taking one pixel row of n characters to
taking all the rows and columns for one character cell.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-06-11 00:18:23 -04:00
Kevin O'Connor
467e8e6f40
display: Default DISPLAY=display in SET_DISPLAY_GROUP command
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-06-09 12:19:53 -04:00
Florian Heilmann
68fcbe2a62
display: add SET_DISPLAY_GROUP command ( #2969 )
...
Signed-off-by: Florian Heilmann <Florian.Heilmann@gmx.net>
2020-06-09 12:07:25 -04:00
Florian Heilmann
f28c3319ed
uc1701: Fix for glyph rendering on uc1701 display ( #2966 )
...
Signed-off-by: Florian Heilmann <Florian.Heilmann@gmx.net>
2020-06-09 08:20:48 -04:00
Kevin O'Connor
cf9627cc05
display: Use animated heated bed icons on default hd44780 display
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-06-09 08:09:59 -04:00
Kevin O'Connor
7713986ae1
display: Make hd44780 glyphs configurable
...
Allow the 20x4 hd44780 screen glyphs to be customizable from the
config file.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-06-09 08:09:59 -04:00
Kevin O'Connor
1a7e4e51b3
display: Use '.' and '*' in display_glyph description
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-06-08 21:40:42 -04:00
Kevin O'Connor
d94dd8e9fd
docs: Note changes to glyph names
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-06-08 16:55:09 -04:00
Florian Heilmann
3dcac1308e
display: Move glyph definition to printer config
...
This commit allows to modify the icons (or glyphs) in the displays that
support it. Existing icons can be modified and new icons can be added via
a [display_glyph] section in the config.
Signed-off-by: Florian Heilmann <Florian.Heilmann@gmx.net>
2020-06-08 16:40:45 -04:00
Kevin O'Connor
12e3b9fa7b
hall_filament_width_sensor: Fix whitespace errors
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-06-06 14:52:56 -04:00
Kevin O'Connor
739e6e7396
extruder_stepper: Don't directly access extruder member variables
...
Rework extruder.get_trapq() into extruder.sync_stepper() so that
extruder_stepper.py does not need to directly access the extruder
internals.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-06-06 14:41:15 -04:00
theophile
518fe023b4
extruder_stepper: Support changing synced extruder on the fly ( #2824 )
...
Signed-off-by: Christopher Meredith <chmeredith@gmail.com>
2020-06-06 14:30:58 -04:00
matpab
967fe1c01c
HallFilamentWidthSensor: Use current width instead of nomal width while delay is not over ( #2907 )
...
Option for using the current diameter instead of nominal while the first measurement isn't in place
Signed-off-by: Matthias Pabel <matthias.pabel@hs-augsburg.de>
2020-06-06 14:19:00 -04:00
Kevin O'Connor
5d26c2a08e
gcode_arcs: Add back in support for E moves in absolute extrude mode
...
This reverts commit 43fa41c1af
.
The above commit disabled absolute extrude moves because it was
unclear if the code would work properly when an M221 extrude factor or
G92 offset was in use. However, since the calculation is done
relative to the raw E position and is sent as a raw E position to
gcode.cmd_G1() these modes should not matter.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-06-04 15:25:17 -04:00
Kevin O'Connor
2a66286d1c
display: Do not show time remaining in default 16x4 display
...
The time remaining estimation is wildy inaccurate. Only show the time
elapsed.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-06-04 15:02:18 -04:00
Kevin O'Connor
9850dc75f4
toolhead: Handle flush_step_generation() call after dwell()
...
If self.kin_flush_delay changes after a G4 dwell command (or other
non-kinematic time update) then it could lead to "internal step
compression" errors. Make sure to handle this case in
flush_step_generation().
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-06-01 15:29:20 -04:00
Kevin O'Connor
1ab41cf41d
gcode: Make it clear that gcode.get_status() can be called without eventtime
...
Make it clear that gcode.get_status() to be called without an
eventtime by defaulting eventtime=None.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-05-26 14:59:15 -04:00
Kevin O'Connor
ceaf818a11
tuning_tower: Minor optimization
...
Store a reference to the gcode class in self.code. Obtain the
z_offset once and use for both the oldval and newval calculation.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-05-26 14:56:52 -04:00
Kevin O'Connor
04532448bc
tuning_tower: Remove max(0, z) check
...
Commit 9530373c
introduced a minimum value of zero for the g-code z
position. Unfortunately, that would likely cause the tuning tower to
not emit a command at the start of a test because the initial dummy z
position is set to a negative value. The minimum bound should not be
needed so remove it.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-05-26 14:46:15 -04:00
Kevin O'Connor
686d557863
tmc5160: Change the default for the pwm_freq field to zero
...
The tmc5160 spec shows a default of zero, so use that same default for
Klipper.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-05-24 23:58:48 -04:00
Adrian Keet
b267178370
controller_fan: Add fan_speed parameter.
...
This gives it parity with heater_fan. Also change the default speed from
max_power to 1.0, since it is already scaled by max_power in set_speed.
Signed-off-by: Adrian Keet <arkeet@gmail.com>
2020-05-24 11:46:46 -04:00
Rubens Panfili
9530373ccb
tuning_tower: compensate z-offset ( #2881 )
...
Signed-off-by: Rubens Panfili <rubens.panfili@gmail.com>
2020-05-24 11:33:09 -04:00
Kevin O'Connor
492cd3d99f
configfile: Fix check for unused config sections and options
...
Commit c3899cef
inadvertently broke the error check for unused config
options. Add a new note_valid parameter to the config access wrappers
and use that in get_status() to fix the check.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-05-21 17:50:51 -04:00
Denis Ignatenko
9270cabb74
hall_filament_width_sensor: fix overflow issue on 12 bit adc ( #2902 )
...
Signed-off-by: Denis Ignatenko <deniss979@gmail.com>
2020-05-21 13:59:09 -04:00
Denis Ignatenko
1d2746f167
hall_filament_width_sensor: Increasing measure stability ( #2836 )
...
Signed-off-by: Denis Ignatenko <deniss979@gmail.com>
2020-05-18 17:14:24 -04:00
fess
c9daefd97f
z_tilt: retries, fix extra retry bug.
...
round to only 6 decimal places of precision. prevents doing extra retry
from small variations due to floating point math.
Signed-off-by: John "Fess" Fessenden <fess@fess.org>
2020-05-18 14:55:25 -04:00
fess
7b0e6725ca
z_tilt: retries fixup err message
...
print retries status before erroring on increase
Signed-off-by: John "Fess" Fessenden <fess@fess.org>
2020-05-18 14:55:25 -04:00
Kevin O'Connor
20a27c697f
bltouch: Add "probe in touch mode" option
...
Signed-off-by: Mike Stiemke <fandjango@gmx.de>
2020-05-11 12:46:25 -04:00
Kevin O'Connor
703490da1c
bltouch: Simplify handling of command timing
...
Always disable the PWM after each command sent. Automatically trim
the command duration so the PWM disable doesn't increase the total
pulse time (when the duration is 200ms or greater).
Track the ideal command end time separately from the pwm transmit time
and only delay toolhead moves to this ideal time.
Update verify_state() to automatically schedule the check using the
time of the last sent command.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-05-11 12:46:25 -04:00
Nathan Plamondon
c402b275c3
bed_mesh: Fix typo ( #2849 )
...
Signed-off-by: Nate Plamondon <nplamondon@gmail.com>
2020-05-11 12:30:57 -04:00
Kevin O'Connor
787ed452c2
klippy: Rename try_load_module() to load_object()
...
Rename try_load_module() so that it uses consistent naming for
"printer objects". Change the function to raise an error by default
if the specified module does not exist.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-05-08 11:05:14 -04:00
Kevin O'Connor
8472c57b59
klippy: Minor code movement
...
Move set_rollover_info() - no code changes.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-05-08 11:05:14 -04:00
Kevin O'Connor
2d4b520260
gcode: Move "ok" tracking to GCodeCommand class
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-05-05 11:08:12 -04:00
Kevin O'Connor
bf4bd5cfc1
gcode: Remove parsing helpers from main gcode class
...
Remove the parsing helpers from the main gcode class now that all
callers have been converted to use the parsing helpers in the
GCodeCommand class.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-05-05 11:08:12 -04:00
Kevin O'Connor
a68bb935df
menu: Use new GCodeCommand wrappers
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-05-05 11:08:12 -04:00
Kevin O'Connor
1fd76b7393
manual_stepper: Use new GCodeCommand wrappers
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-05-05 11:08:12 -04:00
Kevin O'Connor
821df4e994
dotstar: Use new GCodeCommand wrappers
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-05-05 11:08:12 -04:00
Kevin O'Connor
a7ca0e1670
delayed_gcode: Use new GCodeCommand wrappers
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-05-05 11:08:12 -04:00
Kevin O'Connor
e9e0c374d6
temperature_fan: Use new GCodeCommand wrappers
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-05-05 11:08:12 -04:00
Kevin O'Connor
a11535fc86
servo: Use new GCodeCommand wrappers
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-05-05 11:08:12 -04:00
Kevin O'Connor
53093a7a15
output_pin: Use new GCodeCommand wrappers
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-05-05 11:08:12 -04:00
Kevin O'Connor
3c4091548e
tmc5160: Use new GCodeCommand wrappers
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-05-05 11:08:12 -04:00
Kevin O'Connor
d759cc60d3
tmc2130: Use new GCodeCommand wrappers
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-05-05 11:08:12 -04:00
Kevin O'Connor
3e64093b81
tmc2660: Use new GCodeCommand wrappers
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-05-05 11:08:12 -04:00
Kevin O'Connor
8b8f591a05
tmc: Use new GCodeCommand wrappers
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-05-05 11:08:12 -04:00
Kevin O'Connor
0fd12609a6
neopixel: Use new GCodeCommand wrappers
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-05-05 11:08:12 -04:00
Kevin O'Connor
310d583413
gcode_button: Use new GCodeCommand wrappers
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-05-05 11:08:12 -04:00
Kevin O'Connor
1e992f9d16
filament_switch_sensor: Use new GCodeCommand wrappers
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-05-05 11:08:12 -04:00
Kevin O'Connor
02ee379f82
pause_resume: Use new GCodeCommand wrappers
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-05-05 11:08:12 -04:00
Kevin O'Connor
3e6f2206b3
hall_filament_width_sensor: Use new GCodeCommand wrappers
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-05-05 11:08:12 -04:00
Kevin O'Connor
e5c512c8d5
bed_tilt: Use new GCodeCommand wrappers
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-05-05 11:08:12 -04:00
Kevin O'Connor
f2688dbb33
bed_screws: Use new GCodeCommand wrappers
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-05-05 11:08:12 -04:00
Kevin O'Connor
0197fec202
delta_calibrate: Use new GCodeCommand wrappers
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-05-05 11:08:12 -04:00
Kevin O'Connor
b24465976e
heater_bed: Use new GCodeCommand wrappers
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-05-05 11:08:12 -04:00
Kevin O'Connor
95919d1256
screws_tilt_adjust: Use new GCodeCommand wrappers
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-05-05 11:08:12 -04:00
Kevin O'Connor
203568b909
bltouch: Use new GCodeCommand wrappers
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-05-05 11:08:12 -04:00
Kevin O'Connor
4fd5090253
tuning_tower: Use new GCodeCommand wrappers
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-05-05 11:08:12 -04:00
Kevin O'Connor
7232014657
query_endstops: Use new GCodeCommand wrappers
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-05-05 11:08:12 -04:00
Kevin O'Connor
d04476c82e
fan: Use new GCodeCommand wrappers
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-05-05 11:08:11 -04:00
Kevin O'Connor
33c6667881
stepper_enable: Use new GCodeCommand wrappers
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-05-05 11:08:11 -04:00
Kevin O'Connor
a79096efdf
pid_calibrate: Use new GCodeCommand wrappers
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-05-05 11:08:11 -04:00
Kevin O'Connor
12b20c6e77
safe_z_home: Use new GCodeCommand wrappers
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-05-05 11:08:11 -04:00
Kevin O'Connor
947569d347
endstop_phase: Use new GCodeCommand wrappers
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-05-05 11:08:11 -04:00
Kevin O'Connor
153c1cbe60
homing_override: Use new GCodeCommand wrappers
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-05-05 11:08:11 -04:00
Kevin O'Connor
1f64ca4fd9
query_adc: Use new GCodeCommand wrappers
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-05-05 11:08:11 -04:00
Kevin O'Connor
a13e681b2e
gcode_macro: Use new GCodeCommand wrappers
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-05-05 11:08:11 -04:00
Kevin O'Connor
fb16e8810b
idle_timeout: Use new GCodeCommand wrappers
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-05-05 11:08:11 -04:00
Kevin O'Connor
1d2bb5a412
tsl1401cl_filament_width_sensor: Use new GCodeCommand wrappers
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-05-05 11:08:11 -04:00
Kevin O'Connor
19abe2b974
force_move: Use new GCodeCommand wrappers
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-05-05 11:08:11 -04:00
Kevin O'Connor
57ca91a875
quad_gantry_level: Use new GCodeCommand wrappers
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-05-05 11:08:11 -04:00
Kevin O'Connor
d4adeda76b
manual_probe: Use new GCodeCommand wrappers
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-05-05 11:08:11 -04:00
Kevin O'Connor
dce46ea053
z_tilt: Use new GCodeCommand wrappers
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-05-05 11:08:11 -04:00
Kevin O'Connor
ff6c11e827
probe: Use new GCodeCommand wrappers
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-05-05 11:08:11 -04:00
Kevin O'Connor
1746148a45
firmware_retraction: Use new GCodeCommand wrappers
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-05-05 11:08:11 -04:00
Kevin O'Connor
5fe5e21508
heaters: Use new GCodeCommand wrappers
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-05-05 11:08:11 -04:00
Kevin O'Connor
c186766708
configfile: Use new GCodeCommand wrappers
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-05-05 11:08:11 -04:00
Kevin O'Connor
9b6010dc7b
extruder: Use new GCodeCommand wrappers
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-05-05 11:08:11 -04:00
Kevin O'Connor
6869611147
cartesian: Use new GCodeCommand wrappers
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-05-05 11:08:11 -04:00
Kevin O'Connor
ec0e3e710c
toolhead: Use new GCodeCommand wrappers
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-05-05 11:08:11 -04:00
Kevin O'Connor
b0d9a82718
virtual_sdcard: Use new GCodeCommand wrappers
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-05-05 11:08:11 -04:00
Kevin O'Connor
48ebb6959d
skew_correction: Use new GCodeCommand wrappers
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-05-05 11:08:11 -04:00
Kevin O'Connor
433c8c937a
respond: Use new GCodeCommand wrappers
...
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2020-05-05 11:08:11 -04:00