Commit Graph

3736 Commits

Author SHA1 Message Date
Kevin O'Connor df56c723b9 homing: Minor simplification of verify_movement tracking
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-03-29 21:17:53 -04:00
Kevin O'Connor 862d3f9633 homing: Move low-level probing logic from probe.py to homing.py
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-03-29 21:17:53 -04:00
Kevin O'Connor da735ab312 toolhead: Make sure input_shaper movement starts after endstop checking
Add a dwell() to the start of drip_move() to ensure that input_shaper
movements scheduled in advance of the nominal move time aren't
scheduled prior to the homing start.  (Otherwise the stepper may move
prior to endstop checking, which can corrupt the "no movement"
checks.)

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-03-29 21:11:39 -04:00
Kevin O'Connor 34bf8a04c7 config: Comment updates for recent "make menuconfig" updates
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-03-29 20:00:26 -04:00
Kevin O'Connor 00706dec21 output_pin: Fix bug in setting of self.resend_interval
Only set resend_interval if a mcu_duration is specified.  This fixes a
bug introduced in commit 861144d8.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-03-27 14:52:21 -04:00
Justin Schuh 20c96a8300 config: Update printer-robo3d-r2-2017.cfg
Improvements and fixes based on feedback:
 * Make speeds and limits more conservative
 * Fix Y endstop position
 * Improve IR bed leveling
 * Fix filament runout pin

Signed-off-by: Justin Schuh <code@justinschuh.com>
2021-03-27 12:55:17 -04:00
Denis Ignatenko cc31810fa8
hall_filament_width_sensor: fix range check error (#4113)
Signed-off-by: Denis Ignatenko <deniss979@gmail.com>
2021-03-27 12:53:40 -04:00
Kevin O'Connor 00f8262e57 docs: Add links to Klipper Discourse server to Contact.md
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-03-27 12:51:17 -04:00
Kevin O'Connor b88a0b8004 github: Fix typo in invalid-label-bot.yaml
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-03-26 14:15:01 -04:00
Kevin O'Connor dc55142437 docs: Update FAQ on which mcus have hard pwm support
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-03-26 12:39:47 -04:00
Michael Kurz 59c4c49893 stm32: Add hardware PWM support for STM32F1
This adds hardware PWM support for STM32F1 processors.
This should also work for STM32 F0/F2/F4 processors, but I
don't have one of those to test it.

Signed-off-by: Michael Kurz <michi.kurz@gmail.com>
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-03-26 12:04:51 -04:00
Michael Kurz 39188e1cf3 lpc176x: Add hardware PWM support for LPC176x
This adds hardware PWM support for LPC176x processors.

Signed-off-by: Michael Kurz <michi.kurz@gmail.com>
2021-03-26 12:01:42 -04:00
Kevin O'Connor d02c80ef08 output_pin: Make sure to not use a cycle_time or max_duration over 5 seconds
Times longer than 5 seconds may result in a 32bit ticks overflow in
the micro-controller (for fast micro-controllers).

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-03-26 11:37:40 -04:00
Kevin O'Connor 861144d884 output_pin: Increase time host has to confirm a pin setting
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-03-26 11:33:05 -04:00
Pascal P 88f6061cd7
output_pin: Support setting max_duration (#3995)
Also added documentation for using powered tools.

Signed-off-by: Pascal Pieper <accounts@pascalpieper.de>
2021-03-26 11:25:09 -04:00
Clifford Roche e2a3217289
palette2: Add support for P2 devices (#4057)
Module which bring support for P2 devices running in connected mode. This enables using a Palette2 directly with Klippy without Octoprint, or without Palette2 plugins for Octoprint which are not functional out of the box with Klipper.

Signed-off-by: Clifford Roche <clifford.roche@gmail.com>
2021-03-26 11:21:10 -04:00
Kevin O'Connor a0307c0e1c docs: Fix Jekyll rendering of docs/TMC_Drivers.md
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-03-25 12:24:45 -04:00
Kevin O'Connor 5c2c43b05f docs: Revise sensorless homing configuration guide
Recommend finding the minimum and maximum stallguard settings while
tuning sensorless homing.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-03-25 12:21:13 -04:00
Kevin O'Connor ae89a65956 lpc176x: Do not modify PCLKSELx at runtime
The lpc176x has an errata that could cause updates to PCLKSELx to not
take effect.  Rework the code to use the default peripheral clock
speed (25Mhz or 30Mhz) so that this register does not need to be
updated at runtime.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-03-25 11:35:04 -04:00
Kevin O'Connor 6cab7bcfcb lpc176x: Introduce get_pclock_frequency()
Add get_pclock_frequency() - a standard way of obtaining the
peripheral clock frequency.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-03-25 11:35:04 -04:00
Kevin O'Connor 964e3cc456 klippy-requirements: Update Jinja2 to 2.11.3
There was a security fix in Jinja2 v2.11.3 - it does not impact
Klipper, but there is no harm in updating.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-03-25 11:05:27 -04:00
Kevin O'Connor dd4f2d81b6 docs: Deprecate support for the pin_map config option
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-03-25 10:50:56 -04:00
Kevin O'Connor 681ca5be62 config: Do not use beagleboard aliases in example config files
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-03-25 10:49:17 -04:00
Kevin O'Connor 165b4cb63f config: Don't use sanguino aliases in example config files
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-03-25 10:49:17 -04:00
Kevin O'Connor f2c51cd729 config: Don't use arduino due aliases in example config files
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-03-25 10:49:17 -04:00
Kevin O'Connor 7a443e50e1 config: Don't use arduino mega aliases in example config files
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-03-25 10:49:17 -04:00
Kevin O'Connor d386500788 config: Don't use arduino aliases in example-xxx.cfg files
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-03-25 10:49:17 -04:00
Kevin O'Connor 4f66a467e3 config: Create new sample-aliases.cfg with standard aliases
Create a sample-aliases.cfg with all the aliases that are currently
hardcoded in the klippy.pins.py module.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-03-25 10:49:17 -04:00
Kevin O'Connor 36b1ccd598 replicape: Don't require a host alias for the enable_pin default
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-03-25 10:49:17 -04:00
Kevin O'Connor afe853aecc github: Add github issue chooser
Add links to documentation and chat server when a new user opens a new
issue ticket.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-03-24 18:45:29 -04:00
Kevin O'Connor f1c085e15d github: Add FUNDING.yml file
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-03-24 18:39:17 -04:00
Kevin O'Connor 6cf587b4b6 github: Simplify the github "invalid" issue message
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-03-24 18:39:11 -04:00
Janar Sööt 2130e3e5d4
menu: changes in tune menu according to #4023 (#4086)
- set 1% as input minimum for speed and flow
- set speed maximum from 200% to 500%

Signed-off-by: Janar Sööt <janar.soot@gmail.com>
2021-03-23 10:55:25 -04:00
Tomas Rimkus 31823745b3
config: Fix extruder1 step_pin in Robin Nano V2 example (#4098)
Fixed extruder1 step_pin in MKS Robin Nano V2 example config.

Signed-off-by: Tomas Rimkus <sandshrew@gmail.com>
2021-03-23 10:52:10 -04:00
Kevin O'Connor 905e49cc05 docs: Move Example_Configs.md reference in Overview.md
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-03-22 22:12:26 -04:00
Kevin O'Connor 09067ddb52 docs: Updates to Example_Configs.md
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-03-22 22:01:30 -04:00
Kevin O'Connor 8524188203 docs: Add Example_Configs.md - info on adding new config files to Klipper
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-03-22 21:21:56 -04:00
Dmitry Butyugin 8a3a32058f docs: Added a note about different ADLX345 PCB designs
Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
2021-03-20 13:24:43 -04:00
Dmitry Butyugin 2d8945dc1c graph_accelerometer: Support axis-level comparison of adxl345 data
Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
2021-03-20 13:24:43 -04:00
Dmitry Butyugin b6908e56aa docs: Updated measuring resonances doc on max_accel suggestions
Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
2021-03-20 13:24:43 -04:00
Dmitry Butyugin f248b91414 shaper_calibrate: Reduced min shaper freqs to match max_accel ~= 1500
Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
2021-03-20 13:24:43 -04:00
Dmitry Butyugin 57494458f3 shaper_calibrate: Ignore vibrations below max_psd / 20 threshold
The input shaper can only reduce vibrations by 20x. Therefore,
the best-case achievable vibrations level is max(psd) / 20.
Any vibrations below that level can be ignored for the prupose
of input shaper scoring. This allows tuning script to ignore
wide tails of resonances, because it is not helpful to try to
reduce them with input shaping.

Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
2021-03-20 13:24:43 -04:00
Dmitry Butyugin db4a254ece calibrate_shaper: Use fixed 5 Hz steps for minor ticks in the charts
Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
2021-03-20 13:24:43 -04:00
Dmitry Butyugin 73a39370ad shaper_calibrate: Estimate max_accel to avoid excessive smoothing
Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
2021-03-20 13:24:43 -04:00
Evgeny Chukreev 8c369b54ab ds18b20: Segmentation fault on 64bit Raspberry Pi
Signed-off-by: Evgeny Chukreev <Evgeny.Chukreev@gmail.com>
2021-03-19 11:18:51 -04:00
Kevin O'Connor 8eceb9d40a mcu: Update hints for "Timer too close" and "No next step" errors
In practice, these errors are usually due to problems on the host
computer instead of problems with communication.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-03-19 08:35:21 -04:00
Jon Sanders 6c9404ac0c
htu21d: sensor definition fix (#4075)
HTU21D sensor class lacked the method `get_report_time_delta` invoked
during watermark control loops. This short fix simply adds that method
in, calling the `self.report_time` attribute created during class
construction.

Signed-off-by: Jon Sanders <jonsan@gmail.com>
2021-03-18 23:38:07 -04:00
Kevin O'Connor 2144f716f6 tmc2660: Fix typo in seup field
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-03-18 23:36:25 -04:00
Kevin O'Connor b6eea021b1 tmc2660: Use lowercase for stallguard/coolstep fields
Use lowercase for the field names so that it matches the
tmc2130/tmc5160 field names.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-03-18 22:44:38 -04:00
Kevin O'Connor 4566392faf stm32: Minor optimization to can.c IRQ data reading
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-03-18 16:55:04 -04:00