aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* klippy: remove a few unused variable assignments (#6504)Kamil Domański2024-04-059-9/+1
| | | Signed-off-by: Kamil Domański <kamil@domanski.co>
* manual_stepper: Add basic status. (#6527)Viesturs Zariņš2024-04-042-0/+12
| | | | | Adding position and enabled in manual_stepper status. Enabled is already available through stepper_enable object. But this makes it more straightforward to access it. Signed-off-by: Viesturs Zarins <viesturz@gmail.com>
* linux: Don't use absolute paths for includeMichael 'ASAP' Weinrich2024-04-032-2/+2
| | | | | | | | Not all systems (i.e. Nix) repect the standard Linux filesystem hierarchy, instead relative paths should be used and allowing GCC to rely on it's builtin search paths. Signed-off-by: Michael 'ASAP' Weinrich <michael@a5ap.net>
* makefile: Replace CFLAGS -I with -iquoteMichael 'ASAP' Weinrich2024-04-031-2/+3
| | | | | | | | | The -iquote tells GCC to only search that path when resolving a quoted "include" (vs <angle brackets>) which by convention imples a include from the projects own soruce tree. This prevents a conflict between Klippers "sched.h" and "gpio.h" and <linux/gpio.h> and glibc <sched.h>. Signed-off-by: Michael 'ASAP' Weinrich <michael@a5ap.net>
* stm32: fix support for USARTs on STM32G0B0Robert Cambridge2024-04-031-0/+7
| | | | Signed-off-by: Robert Cambridge <robert@cambridge.me>
* makefile: fix warning about lto serial compilation (#6543)John Unland2024-04-021-1/+1
| | | Signed-off-by: John Unland <junland.foss@gmail.com>
* stm32: Add i2c3 bus to STM32H7 (#6541)FOG_Yamato2024-04-021-0/+3
| | | Signed-off-by: Balanuta Simion <simion@fogyamato.dev>
* virtual_sdcard: Fix handling of unicode characters on Python2Kevin O'Connor2024-04-021-3/+6
| | | | | | | | Commit 600e89ae fixed unicode handling on Python3, but broke Python2 support. Use an alternate implementation that should work for both Python3 and Python2. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* toolhead: Populate minimum_cruise_ratio to printer.configfile.settingsKevin O'Connor2024-04-021-6/+7
| | | | | | | | | | | | The default minimum_cruise_ratio setting does not get populated to the printer.configfile.settings information due to the way the max_accel_to_decel backwards compatibility support was implemented. Slightly rework the config reading so that the default for minimum_cruise_ratio is populated there. Reported by @ReXT3D. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* motion_report: Don't negate step_distance on steppers with inverted dir pinKevin O'Connor2024-04-021-2/+0
| | | | | | | | | | When querying the stepper motion queue, the resulting "interval", "count", and "add" are already normalized to the correct direction. That is, the "count" field will be positive if moving in a positive axis direction and negative if moving in the reverse direction. So, negating the step_distance field just complicates the readers. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* scripts: Mark install-ubuntu-22.04 as executable (#6505)Mathias Pihl2024-04-021-0/+0
| | | Signed-off-by: Mathias Pihl <mathias@pihlerne.dk>
* docs: Update Measuring_Resonances.md (#6515)TheParanoidEngineer2024-03-251-1/+1
| | | | | Changed "libopenblas-base" to "libopenblas-dev" Signed-off-by: Philip Weber <philiprweb@gmail.com>
* linux: Allow for more i2c busesCarl Richard Theodor Schneider2024-03-211-1/+1
| | | | | | | | | | | | | | | Similar to commit df79893, this allows klipper to use up to /dev/i2c-14. Similar to before, this limit is arbitrary. This is required for some other SoCs, which have even more i2c buses available, e.g. the rk3399: $ ls -1 /dev/i2c-* /dev/i2c-0 /dev/i2c-3 /dev/i2c-7 Signed-off-by: Carl Richard Theodor Schneider <dev.github@crtified.me>
* motan: Support recording lis2dw and mpu9250 sensors from data_logger.pyKevin O'Connor2024-03-201-8/+7
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* docs: Sort axis_twist_compensation in G-Codes.mdKevin O'Connor2024-03-201-11/+11
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* tmc2240: add ADC voltage formattersKamil Domański2024-03-201-0/+2
| | | | Signed-off-by: Kamil Domański <kamil@domanski.co>
* hc32f460: Adding support for 100pin version of H32F460 (#6488)Mad Beggar2024-03-192-1/+18
| | | Signed-off-by: Guillaume Giraudon <ggiraudon@prism19.com>
* scripts: use greenlet version depending on python versionMarkus Küffner2024-03-191-1/+2
| | | | Signed-off-by: Markus Küffner <kueffner.markus@gmail.com>
* stm32: Add i2c3_PC0_PC1 for stm32g0 (#6529)BIGTREETECH2024-03-151-0/+3
| | | Signed-off-by: Alan.Ma from BigTreeTech <tech@biqu3d.com>
* buildcommands: Add Klipper app name and license to mcu data dictionaryKevin O'Connor2024-03-131-1/+3
| | | | | | | Add the Klipper name and license to the mcu data dictionary so that it can be found in the flash. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* configfile: Add support for reporting runtime_warnings via the API serverKevin O'Connor2024-03-132-4/+14
| | | | | | | Add a new runtime_warning() method that will add a 'runtime_warning' type message to the printer.configfile.warnings object. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* mcu: Write a warning to the log if an incorrect mcu frequency is detectedKevin O'Connor2024-03-131-0/+14
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* heaters: Clarify reported stats after a shutdownKevin O'Connor2024-03-131-1/+6
| | | | | | | | | | The pid logic can continue after a shutdown, even though the pin commands sent to the mcu are ignored. However, this behavior can result in confusing "stats" messages in the log. Explicitly disable updates after a shutdown event so that the log statistics are more clear. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* pid_calibrate: Fix PID_CALIBRATE command when used with heater_genericKevin O'Connor2024-03-132-8/+12
| | | | | | | Make sure the SAVE_CONFIG command saves the calculated PID parameters to the correct config name. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* toolhead: Replace max_accel_to_decel with minimum_cruise_ratioKevin O'Connor2024-03-1310-50/+85
| | | | | | | | | The user facing max_accel_to_decel setting is complicated and confusing. Replace it with a new minimum_cruise_ratio parameter. Internally this user-facing parameter will calculate the existing low-level "accel_to_decel" mechanism. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Fix USART3 ALT pinout on STM32G0 (#6523)Attila2024-03-101-1/+1
| | | Signed-off-by: Attila Rakosi <rattila5@hotmail.com>
* config: "static_value" in [output_pin enable_pin] is deprecated (#6520)Ulf D2024-03-081-1/+1
| | | Signed-off-by: Ulf Dieckmann <1coderookie@quantentunnel.de>