aboutsummaryrefslogtreecommitdiffstats
path: root/klippy
Commit message (Collapse)AuthorAgeFilesLines
...
* rpi_temperature: Minor formatting changesKevin O'Connor2021-01-241-19/+10
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* temperature_mcu: Disable the temperature_mcu when using debug outputKevin O'Connor2021-01-241-0/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* menu: Update menu.cfg sd_card menu enable condition (#3826)Chip2021-01-241-5/+35
| | | | | Change SD card enable condition and add Cancel printing option. Signed-off-by: John Smith <login721@gmail.com>
* hall_filament_width_sensor: Fix race condition (#3790)Pascal P2021-01-222-2/+10
| | | | | | Fix race condition of filament width sensor Added fix to similar code of TSL1401CL filament width sensor Signed-off-by: Pascal Pieper <accounts@pascalpieper.de>
* configfile: Add printer.configfile.settings command template parameterKevin O'Connor2021-01-201-7/+16
| | | | | | | Make available the parsed value (or default value) for config options to command templates and to the api server. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gcode_macro: Use deepcopy() on get_status() resultsKevin O'Connor2021-01-204-9/+8
| | | | | | | | | If a get_status() method returns a mutable object (such as a list or dict) then it would be possible for a gcode command template to incorrectly alter the program's internal state. Perform a deepcopy() operation on all get_status() return results to avoid that. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* mcu: Add a get_status() callback with micro-controller info and statsKevin O'Connor2021-01-191-6/+16
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* winch: Improve python3 compatibilityKevin O'Connor2021-01-171-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* save_variables: Import ConfigParser as configparser for better Python3 supportKevin O'Connor2021-01-171-3/+3
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* menu: Update menu.cfg (#3778)Alex Zellner2021-01-171-21/+21
| | | | | Update min/max in move menu to printer variables. Signed-off-by: Alex Zellner <alexander.zellner@googlemail.com>
* webhooks: Fix use of deprecated Exception.message attribute (#3781)Maël Kerbiriou2021-01-172-5/+5
| | | | | | | | Since Python 2.6, the BaseException.message attribute is deprecated (PEP-352[1]) in favor of e.args[0] or str(e). This commit replaces e.message with str(e). [1] https://www.python.org/dev/peps/pep-0352/ Signed-off-by: Maël Kerbiriou <m431.kerbiriou@gmail.com>
* homing: Fix references to CommandError()Kevin O'Connor2021-01-111-6/+7
| | | | | | | | Commit ea85d419 moved CommandError from homing.py to gcode.py, but failed to fix the references to CommandError within homing.py. Fix that. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* homing: Make homing.py an "extras" moduleKevin O'Connor2021-01-087-29/+45
| | | | | | | Move klippy/homing.py to klippy/extras/homing.py and convert the code to an "extras" modules. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gcode: Move definition of CommandError and Coord from homing.py to gcode.pyKevin O'Connor2021-01-086-28/+24
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* kinematics: Calculate axis_minimum/axis_maximum in advanceKevin O'Connor2021-01-089-77/+71
| | | | | | | | Calculate the get_status() axis_minimum and axis_maximum fields in advance so that they don't need to be calculated on each get_status() call. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* kinematics: report all axis limits (min/max)Janar Sööt2020-12-288-15/+76
| | | | Signed-off-by: Janar Sööt <janar.soot@gmail.com>
* heaters: Make MINIMUM optional for TEMPERATURE_WAIT command (#3674)Justin Schuh2020-12-241-1/+4
| | | Signed-off-by: Justin Schuh <code@justinschuh.com>
* heaters: Add MAXIMUM option to TEMPERATURE_WAIT commandJustin Schuh2020-12-231-1/+2
| | | | Signed-off-by: Justin Schuh <code@justinschuh.com>
* configfile: Improve error message when a required option is missingKevin O'Connor2020-12-221-3/+5
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* configfile: Minor line wrapping changesKevin O'Connor2020-12-221-18/+16
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* shaper_calibrate: Choose input shapers accounting smoothingDmitry Butyugin2020-12-222-68/+99
| | | | | | | | | Improved algorithm to choose the 'optimal' shaper frequency taking shaper smoothing into account. This may choose a frequency with slightly more vibrations but less smoothing. Also allow users to limit the maximum input shaper smoothing. Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
* heaters: Fix TEMPERATURE_WAIT command with extruder and heater_bedKevin O'Connor2020-12-221-1/+4
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* temperature_mcu: Fix slope on stm32f070Kevin O'Connor2020-12-191-1/+1
| | | | | | The stm32f070 has a negative temperature slope. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* temperature_mcu: Fix slope on stm32f1Kevin O'Connor2020-12-191-1/+1
| | | | | | The stm32f103 has a negative temperature slope. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* endstop_phase: Obtain phases directly from stepper microsteps configKevin O'Connor2020-12-182-37/+42
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stepper: Calculate step_distance from rotation_distanceKevin O'Connor2020-12-182-4/+51
| | | | | | | | Add support for automatically calculating the internal step_distance from new config parameters - rotation_distance, microsteps, full_steps_per_rotation, and gear_ratio. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* heaters: Always register heater pin as a pwm pinKevin O'Connor2020-12-152-9/+4
| | | | | | | There's no need to sometimes register the pin as a 'digital_out' pin instead of as a 'pwm' pin. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* heaters: add last pwm value to heater.get_status (#3621)Stefan Dej2020-12-131-1/+3
| | | Signed-off-by: Stefan Dej <meteyou@gmail.com>
* tmc: Use configfile note_valid=False when inspecting stepper step_distanceKevin O'Connor2020-12-131-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* safe_z_home: Use configfile note_valid=False when inspecting z position_maxKevin O'Connor2020-12-131-5/+5
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* probe: Use configfile note_valid=False when inspecting z position_minKevin O'Connor2020-12-131-2/+4
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* manual_probe: Use configfile note_valid=False when inspecting Z position_endstopKevin O'Connor2020-12-131-8/+7
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* hd44780: Make the 4-bit init sequence more robustKevin O'Connor2020-12-121-1/+1
| | | | | | | | | | | | The previous init sequence relied on the display ignoring commands if they are sent faster than 40us. Some displays may not have this limit. Rework the init to make it more robust to command transmission times. The new init should still transition the display into 4-bit mode even if the display processes commands faster than 40us. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gpiocmds: Merge digital output and soft pwm codeKevin O'Connor2020-12-101-6/+6
| | | | | | | | The digital output commands implement a subset of the software pwm commands. Change the host code to just use the software pwm commands and simplify the micro-controller code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* temperature_mcu: Add enhanced support for monitoring mcu temperatureKevin O'Connor2020-12-102-1/+138
| | | | | | | Add a "temperature_mcu" tool that can monitor builtin micro-controller temperature sensors. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* heaters: Add a TEMPERATURE_WAIT commandKevin O'Connor2020-12-071-2/+23
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* temperature_sensor: Report temperature in statsKevin O'Connor2020-12-061-0/+3
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* pca9685: Use move queue for pwm updatesKevin O'Connor2020-12-041-1/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gpiocmds: Use move queue for software pwmKevin O'Connor2020-12-041-2/+3
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gpiocmds: Use move queue for digital output pinsPascal Pieper2020-12-041-4/+5
| | | | | Signed-off-by: Pascal Pieper <accounts@pascalpieper.de> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* pwmcmds: Use move queue for hard PWMPascal Pieper2020-12-041-2/+3
| | | | | Signed-off-by: Pascal Pieper <accounts@pascalpieper.de> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* mcu: Support reserving move queue slotsPascal Pieper2020-12-041-1/+6
| | | | | Signed-off-by: Pascal Pieper <accounts@pascalpieper.de> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gpiocmds: Send soft pwm cycle_time separately from schedule_soft_pwm_outKevin O'Connor2020-12-041-10/+17
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* docs: Add links to default display.cfg and menu.cfg in Config_Reference.mdKevin O'Connor2020-12-032-2/+10
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* rpi_temperature: Don't read min_temp/max_temp directly from configKevin O'Connor2020-12-031-9/+3
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* rpi_temperature: New module to monitor RPi temperature (#3587)Al2020-12-032-1/+89
| | | | | Module to monitor RPi cpu temperature Signed-off-by: Al Crate <aleph@al3ph.org>
* save_variables: Support saving variables to a disk fileKevin O'Connor2020-12-031-0/+63
| | | | | Signed-off-by: Dushyant Ahuja dusht.ahuja@gmail.com Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* menu: modifications (#3262)Janar Sööt2020-12-031-209/+161
| | | | | | | | | - remove lot of helper methods - differentiate class instantiate from config or directly - don't use 'enable' template rendering when static value is used. - new element 'disabled' - other internal adjustments Signed-off-by: Janar Sööt <janar.soot@gmail.com>
* serialhdl: Improve Python3 compatibilityKevin O'Connor2020-12-011-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* heater_fan: Fix typo causing excessive cpu usageKevin O'Connor2020-12-012-12/+10
| | | | | | Commit error introduced in a7e90504 and f261a468. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>