aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras
Commit message (Collapse)AuthorAgeFilesLines
* input_shaper: Fix python3 string encodingKevin O'Connor2021-10-261-2/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* input_shaper: Restore shaper_type config optionKevin O'Connor2021-10-261-1/+2
| | | | | | | The shaper_type config option got removed in commit d5a7a7f0 - restore that option. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* input_shaper: Factored out AxisInputShaper classDmitry Butyugin2021-10-261-97/+114
| | | | Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
* input_shaper: Define input shapers in a single place in Python codeDmitry Butyugin2021-10-263-163/+174
| | | | Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
* temperature_sensor: round reported temps to 2 decimal placesEric Callahan2021-10-151-3/+3
| | | | Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* temperature_host: round reported temps to 2 decimal placesEric Callahan2021-10-151-1/+1
| | | | Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* lm75: round reported temps to 2 decimal placesEric Callahan2021-10-151-1/+1
| | | | Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* htu21d: round reported temps to 2 decimal placesEric Callahan2021-10-151-1/+1
| | | | Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* heaters: round reported temps to 2 decimal placesEric Callahan2021-10-151-1/+1
| | | | Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* ds18b20: round reported temps to 2 decimal placesEric Callahan2021-10-151-1/+1
| | | | Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* bme280: round reported temps to 2 decimal placesEric Callahan2021-10-151-1/+1
| | | | Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* adxl345: Renamed decode_samples and fixed/added checks on empty dataDmitry Butyugin2021-10-133-8/+37
| | | | Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
* tmc: add current values to get_status() (#4696)Philipp Temminghoff2021-10-111-1/+4
| | | Signed-off-by: Philipp Temminghoff <philipptemminghoff@gmail.com>
* button: Support half-stepping encodersRufo Sanchez2021-10-112-35/+91
| | | | | | | | | | | | | Adds support for half-stepping encoders (encoders that only emit two steps per detent, instead of four). Incorporates the feedback from @susisstrolch's PR: https://github.com/KevinOConnor/klipper/pull/4202 , which was itself built upon a previous PR from @nickbrennan01: https://github.com/KevinOConnor/klipper/pull/730 Uses the table from the Rotary Arduino library linked in buttons.py: https://github.com/brianlow/Rotary/blob/6b784cca67c5f1ce5e11d757a540fc4c0311efca/Rotary.cpp#L21-L40 Signed-off-by: Rufo Sanchez <rufo@rufosanchez.com>
* ds18b20: Improve Python3 compatibilityKevin O'Connor2021-10-071-3/+4
| | | | | | Reported by @matthewlloyd. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* adxl345: Expanded invalid adxl345 id messageDmitry Butyugin2021-10-061-2/+5
| | | | Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
* adxl345: Renamed debug commands to fix their parsing by KlipperDmitry Butyugin2021-10-061-10/+10
| | | | Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
* klippy: Add Python2 module wrappers and use Python3 module namingKevin O'Connor2021-10-042-2/+2
| | | | | | | Add wrappers for some common Python modules so that the code can run on both Python2 and Python3. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* virtual_sdcard: Convert to Python3 string encodingKevin O'Connor2021-10-011-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* kinematics: Convert to Python3 string encodingKevin O'Connor2021-10-012-2/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* display: Convert to Python3 string encodingKevin O'Connor2021-10-016-279/+279
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* screws_tilt_adjust: Improve Python3 compatibilityKevin O'Connor2021-09-301-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* fan: Improve python3 compatibilityKevin O'Connor2021-09-301-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* motion_report: Fix typo causing error reports to not propagateKevin O'Connor2021-09-261-1/+1
| | | | | | | The APIDumpHelper._start() method should propagate errors to its caller. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* 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>