aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/controller_fan.py
Commit message (Collapse)AuthorAgeFilesLines
* fan: Support calling set_speed() without a print_timeKevin O'Connor2024-09-301-3/+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>
* controller_fan: Minor updatesKevin O'Connor2021-07-201-5/+6
| | | | | | | | | | Document change in behavior of the controller_fan module. Lookup heater objects in connect() event handler. Return list of stepper names from stepper_enable.get_steppers(). Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* controller_fan: Add "stepper" config option (#4447)Sophie Hirn2021-07-201-2/+16
| | | | | | Allows contoller_fan sections to monitor only certain steppers instead of all of them, similar to how heaters are currently handled. Signed-off-by: Sophie Hirn <sophie.hirn@wyvernscale.com>
* heater_fan: Fix typo causing excessive cpu usageKevin O'Connor2020-12-011-6/+5
| | | | | | Commit error introduced in a7e90504 and f261a468. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* controller_fan: Improve timing of fan commandsKevin O'Connor2020-12-011-6/+11
| | | | | | | Don't use the reactor eventtime to schedule micro-controller commands as that time may have low accuracy. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* controller_fan: add get_status (#3566)Stefan Dej2020-11-231-0/+2
| | | Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fan: Separate out the part cooling fan code from the generic fan codeKevin O'Connor2020-07-051-6/+5
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* extras: Use "from . import module" for relative importsKevin O'Connor2020-06-151-1/+1
| | | | | | Use alternate import syntax to improve Python3 compatibility. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* controller_fan: Add fan_speed parameter.Adrian Keet2020-05-241-6/+4
| | | | | | | This gives it parity with heater_fan. Also change the default speed from max_power to 1.0, since it is already scaled by max_power in set_speed. Signed-off-by: Adrian Keet <arkeet@gmail.com>
* klippy: Rename try_load_module() to load_object()Kevin O'Connor2020-05-081-3/+2
| | | | | | | | Rename try_load_module() so that it uses consistent naming for "printer objects". Change the function to raise an error by default if the specified module does not exist. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* heaters: Make heater.py an "extras" moduleKevin O'Connor2020-04-251-2/+3
| | | | | | | The heater logic is an independent module that does not need to be treated as part of the "core" klipper code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stepper: Move MCU_stepper from mcu.py to stepper.pyKevin O'Connor2019-11-121-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stepper_enable: Move enable tracking from stepper.py to stepper_enable.pyKevin O'Connor2019-11-121-4/+6
| | | | | | | Move the enable line tracking out of the main stepper.py code. This simplifies the main kinematic code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* controller_fan: Replace else followed by single if with elifMaster922019-09-171-4/+3
| | | | Signed-off-by: Nils Friedchen <Nils.Friedchen@googlemail.com>
* controller_fan: Use keyword arguments to improve readabilityMaster922019-09-171-3/+5
| | | | Signed-off-by: Nils Friedchen <Nils.Friedchen@googlemail.com>
* controller_fan: Use snake-case for all variables and function-namesMaster922019-09-171-2/+2
| | | | Signed-off-by: Nils Friedchen <Nils.Friedchen@googlemail.com>
* controller_fan: Use _ to declare discarded return valueMaster922019-09-171-1/+1
| | | | Signed-off-by: Nils Friedchen <Nils.Friedchen@googlemail.com>
* controller_fan: Declare instance-attribute in __init__Master922019-09-171-0/+1
| | | | Signed-off-by: Nils Friedchen <Nils.Friedchen@googlemail.com>
* controller_fan: Allow multiple controller_fan sections to be definedKevin O'Connor2019-03-101-1/+1
| | | | | | | It may be necessary to define multiple fans, so allow each config section to be named. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* controller_fan: Add support for a fan cooling the controller-board (#1070)Master922019-01-101-0/+53
Whenever a stepper driver or a heater becomes active, it is desirable to turn on a fan cooling the associated parts on the controller board. This module implements such a fan that turns on whenever a stepper or specified heater turns on, decelerates to a configurable speed when all of the watched parts turn off, and returns to an off-speed, when a user-defined timeout is met. Signed-off-by: Nils Friedchen <Nils.Friedchen@googlemail.com>