aboutsummaryrefslogtreecommitdiffstats
path: root/klippy
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-263-113/+129
| | | | Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
* input_shaper: Define input shapers in a single place in Python codeDmitry Butyugin2021-10-265-374/+198
| | | | 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>
* delta: Don't limit XY+Z moves to max_z_velocityKevin O'Connor2021-10-111-5/+3
| | | | | | | | | Scale the max_z_velocity limit by the amount of movement in the Z. This should improve bed_mesh and vase mode prints on delta printers. Reported by @hywelmartin and @dalegaard. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* 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>
* configfile: Use Python2's ConfigParser when running on Python2Kevin O'Connor2021-10-092-5/+8
| | | | | | | | | The backport of Python3's configparser causes issues when there is unicode characters in the config file. To avoid introducing new errors, go back to using the Python2 version of ConfigParser when running on Python2. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* console: Fix Python2 compatibilityKevin O'Connor2021-10-081-1/+1
| | | | | | Make sure to import util prior to reactor. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* configfile: Workaround for non-ascii comments on Python2Kevin O'Connor2021-10-081-1/+2
| | | | | | | | Explicitly specify the comment_prefixes as regular Python2 strings - otherwise the configparser wont ignore non-ascii characters in comments. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* 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>
* configfile: Ignore trailing comments starting with a semicolonKevin O'Connor2021-10-061-1/+2
| | | | | | | | Newer versions of configparser no longer default to ignoring trailing comments that start with a semicolon. Add that setting explicitly to avoid breaking existing config files. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* scripts: Use backport of a recent Python3 configparser on Python2Kevin O'Connor2021-10-041-7/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* klippy: Add a build import test toolKevin O'Connor2021-10-041-0/+19
| | | | | | | | Add a test case to verify that every optional module successfully loads on both Python2 and Python3. This is intended to catch syntax and module imports that are not compatible between Python versions. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* klippy: Add Python2 module wrappers and use Python3 module namingKevin O'Connor2021-10-046-8/+29
| | | | | | | 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>
* webhooks: Convert to Python3 string encodingKevin O'Connor2021-10-041-15/+18
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gcode: Convert to Python3 string encodingKevin O'Connor2021-10-011-2/+2
| | | | | | | | | | | The error checking is not complete in this change - the code should handle the case where an input string is not valid utf8. The code will continue to run on Python2 after this change, however the execution time on Python2 is measurably slower after making this change. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* console: Convert to Python3 string encodingKevin O'Connor2021-10-011-1/+1
| | | | 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>
* configfile: Convert to Python3 string encodingKevin O'Connor2021-10-011-2/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* util: Convert to Python3 string encodingKevin O'Connor2021-10-011-5/+5
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* mcu: Convert to Python3 string encodingKevin O'Connor2021-10-011-1/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* reactor: Convert to Python3 string encodingKevin O'Connor2021-10-011-2/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* serialhdl: Convert to Python3 string encodingKevin O'Connor2021-10-011-6/+6
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* kinematics: Convert to Python3 string encodingKevin O'Connor2021-10-019-30/+31
| | | | 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>
* hybrid_corexy: Improve Python3 compatibilityKevin O'Connor2021-09-302-2/+4
| | | | 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>
* stepper: Make sure to report an error if endstop_pin is not definedKevin O'Connor2021-09-291-2/+2
| | | | 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-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>