aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras
Commit message (Collapse)AuthorAgeFilesLines
* configfile: Add support for reporting deprecated optionsKevin O'Connor2021-09-163-2/+6
| | | | | | | Add a new printer.configfile.warnings with a list of config features that are deprecated. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* heaters: Change default smooth_time from 2 seconds to 1 secondKevin O'Connor2021-09-031-1/+1
| | | | | | | | | | | | A larger smooth_time results in a slower reaction time for the PID. This increased delay can cause temperature oscillations with high power heaters. Many boards produce good results without any smoothing. So, it seems a smooth_time of 1 second is a better default. Reported by @ReXT3D. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* tuning_tower: Add STEP_DELTA and STEP_HEIGHT parameters as alternate tuning ↵github@matthewlloyd.net2021-09-021-3/+24
| | | | | | tower syntax Signed-off-by: Matthew Lloyd <github@matthewlloyd.net>
* tuning_tower: Add SKIP parametergithub@matthewlloyd.net2021-09-021-0/+3
| | | | Signed-off-by: Matthew Lloyd <github@matthewlloyd.net>
* tmc: Fix typo in get_status()Kevin O'Connor2021-08-301-0/+1
| | | | | | Fix missing variable assignement introduced in commit 5fd1c985. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* adxl345: Allow multiple simultaneous clientsKevin O'Connor2021-08-301-12/+1
| | | | | | | It is now possible to have multiple tools gathering adxl345 data at the same time. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* adxl345: Change default chip name from "default" to "adxl345"Kevin O'Connor2021-08-301-8/+4
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* adxl345: Compress each sample from 6 bytes to 5 bytesKevin O'Connor2021-08-301-15/+29
| | | | | | | Transmit data from mcu to host using 5 bytes per sample and up to 10 samples per message block. This improves bandwidth efficiency. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* adxl345: Implement timing via new adxl345_status messagesKevin O'Connor2021-08-302-80/+125
| | | | | | | | Query the adxl345 message counter every 100ms so that accurate timing can be obtained during measurements. This allows the adxl345 data to be exported with timestamps while captures are running. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* adxl345: Support querying accelerometer data from webhooks interfaceKevin O'Connor2021-08-301-63/+109
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* adxl345: Add new start_internal_client() function and use in callersKevin O'Connor2021-08-302-44/+57
| | | | | | | | Introduce a new start_internal_client() function and change all client code to use that instead of manually calling start_measurements() and finish_measurements(). Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* adxl345: Always initialize device on start_measurements() callKevin O'Connor2021-08-301-15/+7
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* adxl345: Move g-code commands to new helper classKevin O'Connor2021-08-301-91/+79
| | | | | | | | | | Separate out the G-Code command handlers to a new ADXLCommandHelper() class. This helps separate the sensing code from the user interface code. Deprecate the RATE parameter of the ACCELEROMETER_MEASURE command. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* motion_report: Add helper tool for internal subscribers of dataKevin O'Connor2021-08-301-0/+22
| | | | | | | Add support for internal clients to "subscribe" to data like external clients. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* tmc: Add support for a get_status() methodKevin O'Connor2021-08-306-1/+30
| | | | | | Export mcu_phase_offset and drv_status information. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* homing: Fix error in retract move causing "must home axis" errorsKevin O'Connor2021-08-281-12/+15
| | | | | | | | | It's possible for the original homing move of an axis to alter the position of other axes. Make sure those other axes are not requested to move on a subsequent second home retract move, as that could cause an error if those other axes have not been homed. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* manual_stepper: Add missing calc_position() wrapper callKevin O'Connor2021-08-261-0/+2
| | | | | | | Commit 3814a132 added code to homing.py to call calc_position() - add that function to manual_stepper.py . Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* configfile: Support config.getchoice() with integer keysKevin O'Connor2021-08-254-23/+20
| | | | | | | | If the choice mapping uses integer keys then lookup the config option using self.getint(). This simplifies the callers and improves the encoding of the printer.configfile.settings export. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* motion_report: Add support for dumping steps/trapq via API serverKevin O'Connor2021-08-221-5/+125
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* tmc: Use config.getint() when reading microstep settingKevin O'Connor2021-08-221-3/+5
| | | | | | | Don't use config.getchoice() as that results in a string reported by printer.configfile.settings. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* bed_mesh: Use config listsKevin O'Connor2021-08-211-32/+51
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* tmc_uart: Use config.getlist() for select_pins config optionKevin O'Connor2021-08-211-6/+6
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* static_digital_output: Use config.getlist() for pins config optionKevin O'Connor2021-08-211-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* multi_pin: Use config.getlist() for pins config optionKevin O'Connor2021-08-211-2/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* duplicate_pin_override: Use config.getlist() for pins config optionKevin O'Connor2021-08-211-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* board_pins: Use config list helpersKevin O'Connor2021-08-211-13/+4
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* z_tilt: Use config.getlists() for z_positions config optionKevin O'Connor2021-08-211-9/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* safe_z_home: Use config.getfloatlist() for home_xy_position config optionKevin O'Connor2021-08-211-7/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* resonance_tester: Use config.getlists() for probe_points config optionKevin O'Connor2021-08-211-10/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* quad_gantry_level: Use config.getlists() for gantry_corners config optionKevin O'Connor2021-08-211-9/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* homing_heaters: Use config.getlist() for heaters and steppers config optionsKevin O'Connor2021-08-211-15/+9
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* heater_fan: Use config.getlist() for heater config optionKevin O'Connor2021-08-211-3/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gcode_button: Use config.getfloatlist() for analog_range config optionKevin O'Connor2021-08-211-6/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* endstop_phase: Use config.getintlist() for trigger_phase config optionKevin O'Connor2021-08-211-5/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* menu_keys: Use config.getfloatlist() for analog_range_ config optionsKevin O'Connor2021-08-211-6/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* delta_calibrate: Use config.getfloatlist() for parsing "stable positions"Kevin O'Connor2021-08-211-8/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* controller_fan: Use config.getlist() for heater and stepper config parametersKevin O'Connor2021-08-211-12/+8
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* probe: Use config.getlists() for points config optionKevin O'Connor2021-08-211-8/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* screws_tilt_adjust: Use config.getfloatlist() for coordinates config optionKevin O'Connor2021-08-211-9/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* bed_screws: Use config.getfloatlist() for coordinates config optionKevin O'Connor2021-08-211-12/+5
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* adxl345: Use config.getlist() for axes_map config optionKevin O'Connor2021-08-211-2/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* endstop_phase: Calculate phase based on trigger positionKevin O'Connor2021-08-172-28/+34
| | | | | | | Update the endstop_phase code to use the phase of the stepper motor at the endstop trigger time. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* homing: Calculate homing position based on trigger timeKevin O'Connor2021-08-171-19/+54
| | | | | | | | | Calculate the "homing position" using the endstop trigger time instead of the position of the steppers. This is in preparation for multi-mcu homing. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* mcu: Return time of trigger from home_wait()Kevin O'Connor2021-08-172-4/+7
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* htu21d: Update htu21d.py (#4520)dawidmpunkt2021-08-171-1/+1
| | | | | Line 202: should be self.humidity instead of self.temp Signed-off-by: Dawid Murawski <dawid.m@gmx.net>
* bed_mesh: Added PROFILE name option (#4522)Randell Hodges2021-08-171-1/+3
| | | | | | | Added optional PROFILE parameter to allow bed_mesh_calibrate to save the mesh directly into the provided profile name instead of default. If omitted, it will be stored in default. Signed-off-by: Randell L Hodges <rhodges@taxfodder.com>
* output_pin: fix time difference calculationPascal Pieper2021-08-171-1/+1
| | | | Signed-off-by: Pascal Pieper <accounts@pascalpieper.de>
* bed_screws: Finish bed_screws_adjust after n consecutive accepts (#4521)chrenderle2021-08-171-6/+12
| | | | | | | Changed the bed_screws_adjust command so that it finishes after 4 consecutive accepts. Before if you had 4 screws and adjusted the first one you had to accept 7 times to finish the bed_screws_adjust. Signed-off-by: Christian Enderle <mail@chrenderle.de>
* bed_mesh: Fix off-by-one error in faulty region error reportKevin O'Connor2021-08-171-2/+4
| | | | | | Reported by @craiglink. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* motion_report: Fix typo causing incomplete queriesKevin O'Connor2021-08-171-4/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>