aboutsummaryrefslogtreecommitdiffstats
path: root/klippy
Commit message (Collapse)AuthorAgeFilesLines
* configfile: Add support for reporting deprecated optionsKevin O'Connor2021-09-166-2/+34
| | | | | | | Add a new printer.configfile.warnings with a list of config features that are deprecated. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* configfile: Setup get_status() results after check_unused_options()Kevin O'Connor2021-09-161-5/+5
| | | | 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>
* delta: Make the 'arm_length' description more clear in save_state()Kevin O'Connor2021-09-021-3/+3
| | | | | | Reported by @conlank. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* toolhead: change SET_VELOCITY_LIMIT respond (fixed) (#4620)Stefan Dej2021-08-311-10/+19
| | | | | Returns only the current values if no new ones have been passed. Signed-off-by: Stefan Dej <meteyou@gmail.com>
* stepper: detect duplicate endstopsLasse Dalegaard2021-08-311-6/+26
| | | | | | | When adding steppers to a `PrinterRail`, detect duplicated `endstop_pin` settings and add them to the already-registered endstop. Signed-off-by: Lasse Dalegaard <dalegaard@gmail.com>
* 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>
* mcu: Support multi-mcu homingKevin O'Connor2021-08-281-12/+31
| | | | | | | Support endstops and probes attached to a different micro-controller than their associated steppers. 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-255-24/+24
| | | | | | | | 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>
* Revert "toolhead: change SET_VELOCITY_LIMIT respond behavior"Kevin O'Connor2021-08-241-19/+7
| | | | | | This reverts commit 9f75e348b06f494c0aa4181867b92013f72a9278. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* toolhead: change SET_VELOCITY_LIMIT respond behaviorstefand2021-08-241-7/+19
| | | | | | Returns only the current values if no new ones have been passed. Signed-off-by: Stefan Dej <meteyou@gmail.com>
* 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>
* webhooks: Add register_mux_endpoint() helper functionKevin O'Connor2021-08-221-0/+28
| | | | | | | Add ability to register an endpoint that invokes a handler based on a parameter in the request. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stepper: Add mcu_to_commanded_position() methodKevin O'Connor2021-08-222-3/+3
| | | | | | | Convert stepper.get_past_commanded_position() to the more general stepper.mcu_to_commanded_position(). 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>