aboutsummaryrefslogtreecommitdiffstats
path: root/klippy
Commit message (Collapse)AuthorAgeFilesLines
* save_variables: Verify filename path is writeable at startupJustin Schuh2022-12-111-0/+2
| | | | Signed-off-by: Justin Schuh <code@justinschuh.com>
* gcode_arcs: No need to import gcode module to access Coord()Kevin O'Connor2022-12-111-6/+8
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gcode_arcs: support XY, XZ and YZ planesAndrew Mirsky2022-12-111-28/+73
| | | | | | | add G17, G18 and G19 commands to select arc planes enhance G2/G3 to support arc moves in XY, XZ and YZ planes Signed-off-by: Andrew Mirsky <andrew@mirsky.net>
* parsedump: Support running on both python2 and python3Kevin O'Connor2022-12-072-14/+12
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: add STM32H723 supportbigtreetech2022-12-021-0/+6
| | | | | Signed-off-by: Chen.BJ from BigTreeTech chenbj@biqu3d.com Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32g4: implement build,usb,can,i2c,spi,serial,adc.Matt Baker2022-12-021-0/+1
| | | | Signed-off-by: Matt Baker <baker.matt.j@gmail.com>
* corexz: Multiple steppers per axis on CoreXZNeko-vecter2022-12-021-7/+6
| | | | | | Allowing multiple steppers per axis. Signed-off-by: Vecter Fang <vecterfang@icloud.com>
* safe_z_home: Fix final z hop to use relative z coordinates (#5879)redstone992022-11-221-1/+4
| | | | | | | | | | | After a G28 z-axis homing, there is a final z hop. It was hoping to height z_hop as an absolute z height rather than relative. If the z-axis home leaves the head at a z height higher than z_hop, e.g. because you were using a probe to do z homing, this meant that it was z hopping in the negative z direction, which could result in crashing the toolhead. Signed-off-by: Joshua Redstone <redstone@gmail.com>
* mpu9250: add MPU6500 (#5767)Yifei Ding2022-11-191-4/+14
| | | Signed-off-by: Yifei Ding <yifeiding@protonmail.com>
* bed_mesh: disallow null profile namesEric Callahan2022-11-111-0/+6
| | | | Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* menu: Conditional display of common Control utilsGrigi2022-11-031-3/+24
| | | | | | | | | | This will hide features in the Klipper Display menu that isn't applicable for the machine, therefore we can add extra alignment tools in the Control menu as well. Also conditionally displays Setup/Calibration options. Signed-off-by: Nickolas Grigoriadis <nagrigoriadis@gmail.com>
* adxl345: Apply correct scaling for X,Y and Z axesDmitry Butyugin2022-10-251-3/+4
| | | | | | | | According to ADXL345/ADXL343 datasheets, at 3.3V supply voltage, which is most frequent in the various boards, the sensitivity of X and Y axes changes to 265 LSB/g from 256 LSB/g at 2.5V. Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
* toolhead: Capture current junction_deviation in a Move classDmitry Butyugin2022-10-171-3/+4
| | | | | | | If a maximum acceleration is changed between two consecutive moves, this allows to correctly compute the junction velocity between them. Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
* atsamd: Add Kconfig definitions for same51j19 and same54p20 chipsKevin O'Connor2022-10-131-2/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* print_stats: add `SET_PRINT_STATS_INFO` G-Code for pass slicer variables to ↵Stefan Dej2022-10-051-1/+28
| | | | | | | Klipper (#5726) This adds a gcode command that can be used insight the slicer to pass the total layer count and current layer information. Signed-off-by: Stefan Dej <meteyou@gmail.com>
* z_thermal_adjust: get_temp hotfixalchemyEngine2022-09-301-0/+6
| | | | | | | M105 expects get_temp method. Module crashes when gcode_id parameter is set and M105 called. Add methods as hotfix. Signed-off-by: Robert Pazdzior <robertp@norbital.com>
* z_thermal_adjust: Add Z thermal adjuster module (#4157)alchemyEngine2022-09-251-0/+183
| | | | | | Use a frame-coupled temperature probe to compensate for thermal expansion in real-time. Signed-off by: Robert Pazdzior <robertp@norbital.com>
* thermocouple: Only shutdown on multiple consecutive sensor errorsKevin O'Connor2022-09-231-6/+10
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* spi_temperature: Separate out fault handling from temperature calculationKevin O'Connor2022-09-231-26/+35
| | | | | | | Introduce a new handle_fault() method to handle processing of sensor faults. This simplifies the calc_temp() methods. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* thermocouple: Report fault information in fault fieldKevin O'Connor2022-09-231-6/+6
| | | | | | | Send the fault information explicitly in the query_thermocouple fault field for max6675, max31855, and max31865. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32l4: add stm32l412 support with adc,i2c,spi,usbMatt Baker2022-09-151-0/+1
| | | | Signed-off-by: Matt Baker <baker.matt.j@gmail.com>
* virtual_sdcard: read new lines as-isPedro Lamas2022-09-111-2/+2
| | | | Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
* tmc: Improve error on missing stepper sectionKevin O'Connor2022-09-051-0/+4
| | | | | | | | If a tmc driver can't find the stepper config section it reports a "missing microsteps" error which can be confusing. Provide a more explicit error message. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* fan: add enable_pin option (#5732)dalegaard2022-09-031-0/+11
| | | Signed-off-by: Lasse Dalegaard <dalegaard@gmail.com>
* mcp4018: Add SET_DIGIPOT command to mcp4018 implementation (#5737)jake-b2022-09-021-1/+14
| | | | | | | | | Added a SET_DIGIPOT command to the mcp4018 implementation. Previously the mcp4018 was read only, and set at the time of configuration. This allows you to change the value during a print, which is needed for some older printers that need to lower the stepper current during preheating. Signed-off-by: Jake Bordens <jake@allaboutjake.com>
* kinematics: Add deltesian printers (#5743)Tircown2022-09-013-4/+234
| | | | | Initial push of the working deltesian kinematics after some successful tests. Signed-off-by: Fabrice GALLET <tircown@gmail.com>
* extruder_stepper: Support configuring pressure advance from configDmitry Butyugin2022-09-012-4/+6
| | | | | | | Also added status report for extruder_stepper objects with the current pressure advance parameters values. Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
* save_variables: Do not write to console when variables are savedMapleLeafMakers2022-09-011-1/+0
| | | | | | | Removes a call to gcmd.respond_info which writes 'VARIABLE SAVED' to the console every time the SAVE_VARIABLE command is called. Signed-off-by: Andre LeBlanc <mapleleafmakers@gmail.com>
* palette2: Fix UART encodingClifford Roche2022-08-191-5/+8
| | | | | | Raised from issue #5645, UTF-8 encoded symbols or other unexpected symbols on the UART raise an exception which causes klipper to stop. This change support UTF-8 encoded characters (from file names) as well as ignoring unexpected bytes. Signed-off-by: Clifford Roche <clifford.roche@gmail.com>
* delta: Added the possibility to get where the "cone shape" of the build ↵Nitram2022-08-191-0/+1
| | | | | | | volume starts from Macros (#5662) Added the possibility to get where the "cone shape" of the build volume starts from Macros Signed-off-by: Martin Malmqvist <Volcomosq@gmx.com>
* console: Add support for DUMP and FILEDUMP commandsKevin O'Connor2022-07-291-1/+52
| | | | | | Add helper functions to dump memory via debug_read commands. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* mcu: Delay reset signaling for usb to canbus bridge nodesKevin O'Connor2022-07-292-4/+14
| | | | | | | | An mcu device acting as an "mcu bridge" should only be reset after other normal devices are reset - otherwise the bridge wont be able to pass along the reset message to the downstream mcus. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* serialqueue: Improve canbus timingKevin O'Connor2022-07-294-28/+54
| | | | | | | Adjust timing based on the minimum transmission time of canbus messages. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* canbus_ids: Use 4 as the first nodeid to reduce id bitstuffingKevin O'Connor2022-07-291-1/+3
| | | | | | | Starting with nodeid 4 instead of nodeid 0 can reduce bitstuffing of the id field in common configurations. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* bed_screws: report statusPedro Lamas2022-07-281-5/+14
| | | | Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
* manual_probe: report statusPedro Lamas2022-07-211-2/+23
| | | | Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
* webhooks: Close clients that become unresponsiveKevin O'Connor2022-07-061-0/+15
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* webhooks: Use reactor to watch for writable fdsKevin O'Connor2022-07-061-27/+22
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* reactor: Add support for waiting on fds becoming writableKevin O'Connor2022-07-061-24/+75
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* respond: No forced spaces (#5152)chestwood962022-06-301-1/+12
| | | Signed-off-by: Adrian Joachim <adi.joachim12@gmail.com>
* stm32: Add MCU temp for Stm32h7 (#5606)adelyser2022-06-271-0/+6
| | | | | Added mcu temperature to the stm32h7 processor. Signed-off-by: Aaron DeLyser <bluwolf@gmail.com>
* klippy: properly set log level when logging to stderrKamil Trzciński2022-06-271-1/+1
| | | | | | | | | | The `logging.basicConfig` does not reconfigure default logger. This results in printing only warnings/errors to stderr instead of also info (or debug). This fixes the issue by setting log level on root logger. Signed-off-by: Kamil Trzciński <ayufan@ayufan.eu>
* display_status: Implement SET_DISPLAY_TEXT commandEric Callahan2022-06-271-0/+6
| | | | Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* mpu9250: Inline twos_complement() codeKevin O'Connor2022-06-201-10/+5
| | | | | | | Calling python functions can have high overhead. Inline the twos_complement code in the _extract_samples() inner loop. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* mpu9250: Use adxl345.AccelCommandHelper directlyKevin O'Connor2022-06-202-87/+21
| | | | | | | | | The MPU9250CommandHelper() class is nearly a duplicate of ADXL345CommandHelper(). Rename ADXL345QueryHelper() to AccelCommandHelper and remove user facing references to "adxl345". Use it directly from mpu9250.py . Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* mpu9250: Use adxl345.ClockSyncRegression directlyKevin O'Connor2022-06-201-49/+1
| | | | | | | | The mpu9250.ClockSyncRegression() class is a duplicate of adxl345.ClockSyncRegression(). Remove the duplicate copy and use the code from adxl345.py . Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* mpu9250: Use adxl345.AccelQueryHelper directlyKevin O'Connor2022-06-202-75/+4
| | | | | | | | The MPU9250QueryHelper() class is a duplicate of ADXL345QueryHelper(). Rename ADXL345QueryHelper() to AccelQueryHelper() and use it directly from mpu9250.py . Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* configfile: Expose options awaiting to be saved (#5270)Kurt Haenen2022-06-201-3/+22
| | | | | | | Adds a save_config_pending_items to the status reported by configfile reflecting the items and values that a future SAVE_CONFIG would actually persist. Signed-off-by: Kurt Haenen <kurt.haenen@gmail.com>
* bed_mesh: cache mesh statusEric Callahan2022-06-171-7/+13
| | | | | | | Prevent calls to `get_status()` from creating a new status dict on each request. Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* mpu9250: Adding support for MPU-9250 (and MPU-6050) accelerometerbluesforte2022-06-161-0/+461
| | | | | | Add support for mpu9250 accelerometer over I2C bus. Signed-off-by: Harry Beyel <harry3b9@gmail.com>