aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* tmc: Refactor TMCtstepHelper()Kevin O'Connor2024-05-161-37/+22
| | | | | | | Update TMCtstepHelper() to obtain the step_distance, tmc_frequency, and mres fields directly. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* idex_modes: Bugfix for kinematic position calculation.Frans-willem Hardijzer2024-05-164-22/+34
| | | | | | | | | | | | | | | idex_mode would swap the X and dual-carriage rail in some cases (homing), but not in others. As such, the position calculation was correct while homing, but incorrect for the second carriage during normal moves. This commit fixes homing to work without swapped rails, removes the swapping of rails while homing, and removes the ability to swap rails (as it is now no longer used). Fix has been tested in a Hybrid_CoreXY IDEX printer (Voron Double Dragon). Hybrid_CoreXZ has identical changes and is similar enough that I am confident it will work as intended. Changes to cartesion seem simple enough, but would benefit from someone running a couple of tests. Signed-off-by: Frans-Willem Hardijzer <fw@hardijzer.nl>
* bed_mesh: Fix adaptive probe count on delta printers (#6600)voidtrance2024-05-151-1/+4
| | | | | | | | | | | | | | Round beds require an odd number of probe points in order to prevent erroneously truncating the mesh. The adaptive mesh algorithm did not consider that and as a result, it was possible to generate adaptive meshes with even number of probe points. This change fixes this by increasing the probe point count by 1 in cases where the adaptive probe points are even. Signed-off-by: Mitko Haralanov <voidtrance@gmail.com>
* docs: Update jinja2 requirement in mkdocs-requirements.txtKevin O'Connor2024-05-151-1/+1
| | | | | | | | Update the jinja2 version to suppress security warnings. Klipper is not impacted by the vulnerability, but it is harmless to update the version. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* docs: Minor wording change to coolstep_threshold in Config_Reference.mdKevin O'Connor2024-05-141-4/+4
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* tmc: Implement high_velocity_threshold for drivers that support itAlex Voinea2024-05-145-0/+47
| | | | Signed-off-by: Alex Voinea <voinea.dragos.alexandru@gmail.com>
* tmc: Implement coolstep_threshold for drivers that support itAlex Voinea2024-05-146-0/+50
| | | | Signed-off-by: Alex Voinea <voinea.dragos.alexandru@gmail.com>
* tmc: Implement CoolStep fields for all driversAlex Voinea2024-05-143-0/+23
| | | | Signed-off-by: Alex Voinea <voinea.dragos.alexandru@gmail.com>
* tmc2130: implement missing HighVelocity fields in the configAlex Voinea2024-05-142-0/+4
| | | | Signed-off-by: Alex Voinea <voinea.dragos.alexandru@gmail.com>
* tmc: Do not pass the frequency directly to the helpersAlex Voinea2024-05-146-7/+8
| | | | | | Use the new get_tmc_frequency() instead. Signed-off-by: Alex Voinea <voinea.dragos.alexandru@gmail.com>
* stm32: Add STM32G474 chip to KconfigDropeffect GmbH2024-05-142-0/+10
| | | | Signed-off-by: Amr Elsayed from Dropeffect GmbH <code@dropeffect.com>
* stm32: Add FDCAN2 channel needed for stm32g4 alternate pinsDropeffect GmbH2024-05-142-2/+15
| | | | | | | | Some of the alternate pins defined are routed to FDCAN2 instead of FDCAN1, this commit uses the correct IRQ register and peripheral clock enable bit to enable FDCAN on those pins. Signed-off-by: Amr Elsayed from Dropeffect GmbH <code@dropeffect.com>
* stm32g4: Fix ADC3 common interface registers name to ADC345_COMMONDropeffect GmbH2024-05-141-0/+4
| | | | | | Use ADC345_COMMON instead of ADC3_COMMON for stm32g4 ADC3 channel. Signed-off-by: Amr Elsayed from Dropeffect GmbH <code@dropeffect.com>
* config: Add safe_z_home section for Creality CR-6 SEStéphane Lepin2024-05-122-0/+8
| | | | | | | The Creality CR-6 SE has a strain gauge on its hotend used for z-probing and homing. Currently, running G28 to home all axes puts the hotend just outside of the print bed and thus assumes a wrong homing point for the Z axis. This change aims to address this issue by setting a safe Z-homing point (in the middle of the print bed) into the Creality CR-6 SE 2020 and 2021-revision config files. Signed-off-by: Stéphane Lepin <stephane.lepin@gmail.com>
* stm32: Add new spi2 on stm32g0 chips (#6569)Donald A. Cupp Jr2024-05-031-15/+27
| | | Signed-off-by: Donald A. Cupp Jr <doncuppjr@yahoo.com>
* klippy: Replace logging.warn usage with logging.warningJelle van der Waa2024-05-012-5/+6
| | | | | | | logging.warn is an alias to logging.warning since Python 3.3 and will be removed in Python 3.13. Signed-off-by: Jelle van der Waa <jelle@vdwaa.nl>
* docs: Update Measuring_Resonances.md (#6509)charminULTRA2024-04-291-1/+5
| | | | | Current command, using the *, results in bad chart output when more than one .csv file exists in the tmp folder. This isn't obvious for people who may not know that the * is a wildcard character. Signed-off-by: Jonathan Williams <jcw122@gmail.com>
* adxl345: Fix read_axes_map() for non-adxl345 accelerometersKevin O'Connor2024-04-293-6/+6
| | | | | | | | | | | Commit 3f845019 unified the reading of the axes_map configuration variable, but broke the per-sensor scaling capabilities. Pass the scale parameters to read_axes_map() so that it can be implemented per-sensor. Reported by @Neko-vecter. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* probe: Fix typo in activate/deactive error messagesKevin O'Connor2024-04-271-2/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* pru: BeagleBone Firmware upgrade to Debian 11.7 Bullseye (#6577)Oleg Gavavka2024-04-2723-2601/+565
| | | | | | | | | | | | | | | * Porting BeagleBone to Kernel 5.10 * Fixing issue with installation for BeagleBone. This fix resolve 2 issue: 1. Conflict with AVR packages. 2. "klipper_pru" script is executed before PRU cores are ready * Adding additional steps to BeagleBone install guide. * Updating BeagleBone documentation, adding different use cases, adding buses configurations SPI, I2C, CAN, UART Signed-off-by: Oleg Gavavka <work@datalink.net.ua>
* rp2040: Add kconfig options for rp2040 uart (#6549)Amken USA2024-04-242-23/+97
| | | | | Modified serial.c and Kconfig to dynamically select all possible UART combinations for RP2040 Signed-off-by: Hriday Keni <info@amken.us>
* bme280: Add BMP388 sensor support to BMxx80 (#6576)林玮 (Jade Lin)2024-04-242-6/+155
| | | | | | Extends the BMxx80 category with support for the BMP388 sensor, providing temperature and pressure output similar to the existing BMxx80 class of sensors. Signed-off-by: 林玮 (Jade Lin) <linw1995@icloud.com>
* docs: Fix typo in Bed_Mesh.md (#6572)Alessandro Maggi2024-04-201-4/+3
| | | Signed-off-by: Maggi Alessandro <maggialessandro360@gmail.com>
* sht3x: Add sht31 support (#6560)Timofey Titovets2024-04-204-1/+188
| | | Signed-off-by: Timofey Titovets <nefelim4ag@gmail.com>
* docs: Update CANBUS_Troubleshooting.md to avoid formatting errorKevin O'Connor2024-04-201-9/+9
| | | | | | Avoid starting a line with "128." as that confused markdown. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* bulk_sensor: Rename BulkDataQueue methodsKevin O'Connor2024-04-202-9/+9
| | | | | | | | Rename pull_samples() to pull_queue() and rename clear_sample() to clear_queue(). This avoids confusion between the queue of response messages and the larger list of samples stored within those messages. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* bulk_sensor: Rework ChipClockUpdater class into FixedFreqReaderKevin O'Connor2024-04-205-93/+66
| | | | | | | Move the sensor_bulk_data message queuing into the class, and then rename that class. This simplifies the users of the code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* bulk_sensor: Refactor ChipClockUpdater constructorKevin O'Connor2024-04-205-45/+31
| | | | | | | Build the clock_sync and struct.Struct() in the ChipClockUpdater constructor. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* ldc1612: Use extract_samples() for sample timestamp calculationKevin O'Connor2024-04-201-22/+10
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* mpu9250: Use extract_samples() for sample timestamp calculationKevin O'Connor2024-04-201-30/+11
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lis2dw: Use extract_samples() for sample timestamp calculationKevin O'Connor2024-04-201-33/+11
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* adxl345: Move sample timestamp calculation to reusable codeKevin O'Connor2024-04-202-31/+44
| | | | | | | | | | Add a new extract_samples() method to the ChipClockUpdater class that calculates the sample timestamp for each sample in a list of bulk sensor reports. Update the adxl345 code to use that extract_samples() code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* docs: Add information on txqueuelen to CANBUS_Troubleshooting.mdKevin O'Connor2024-04-201-0/+50
| | | | | | | | Provide some background information on the Linux can interface txqueuelen parameter, errors that it can cause, and considerations when configuring it. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* docs: Recommend using "ip" instead of "ifconfig" in CANBUS.mdKevin O'Connor2024-04-201-2/+2
| | | | | | | Some Linux systems do not install ifconfig, while ip should always be available. So, update the canbus documentation to recommend that. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* virtual_sdcard: Define a default for on_gcode_errorKevin O'Connor2024-04-153-2/+15
| | | | | | | If on_gcode_error is not specified, default to running the TURN_OFF_HEATERS command. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* config: Artillery Sidewinder X3 (#6534)TheFeralEngineer2024-04-123-1/+190
| | | Signed-off-by: Phil Timpson <theferalengineer@gmail.com>
* docs: Fix typo in Resonance_Compensation.mdtrofen2024-04-121-1/+1
| | | Signed-off-by: Plynskiy Nikita <nikita53ne@yandex.ru>
* homing_override: Adds rawparams supportPedro Lamas2024-04-121-0/+1
| | | | Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
* manual_stepper: Revert "manual_stepper: Add basic status. (#6527)"Kevin O'Connor2024-04-102-12/+0
| | | | | | | | | This reverts commit b029d0466841b90b54279500f70a92deacfd6c5a. The MCU_Stepper class does not have a is_motor_enabled() method, so the change above results in an internal exception. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* motan: Add support for graphing ldc1612 coil frequenciesKevin O'Connor2024-04-092-2/+69
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* docs: Add a new Eddy_Probe.md documentKevin O'Connor2024-04-093-0/+58
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* docs: Add documentation for probe_eddy_currentKevin O'Connor2024-04-092-0/+56
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* probe_eddy_current: Use sensor value at halt position for "trigger" positionKevin O'Connor2024-04-091-0/+44
| | | | | | | | Calculate the sensor Z position after the probe halts and return that as the "probed position". This sensor position provides a more accurate measurement. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* probe_eddy_current: Initial support for PROBE commandKevin O'Connor2024-04-092-1/+125
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* probe_eddy_current: Support calibrating Z height to sensor frequencyKevin O'Connor2024-04-092-3/+190
| | | | | | | Add a calibration tool that can be used to correlate sensor frequency to bed Z height. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* ldc1612: Add LDC_CALIBRATE_DRIVE_CURRENT calibration commandKevin O'Connor2024-04-091-3/+45
| | | | | | Add a command to calibrate the sensor DRIVE_CURRENT0 register. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* ldc1612: Initial host support for reading ldc1612 bulk sensor dataKevin O'Connor2024-04-091-0/+154
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* sensor_ldc1612: Initial support for bulk reading ldc1612 sensorKevin O'Connor2024-04-093-1/+216
| | | | | Signed-off-by: Alan.Ma from BigTreeTech <tech@biqu3d.com> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* probe: Add a probing_move() wrapper to low-level mcu_probe classKevin O'Connor2024-04-093-7/+15
| | | | | | | This allows the low-level probe class more control on the probing implementation. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* mcu: Separate trdispatch handling from MCU_endstop classKevin O'Connor2024-04-091-37/+60
| | | | | | | Create a new TriggerDispatch class to track the low-level handling of the trdispatch mechanism. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>