aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/heater_fan.py
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* heater_fan: Improve timing of fan commandsKevin O'Connor2020-12-011-5/+10
| | | | | | | 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>
* fan: Separate out the part cooling fan code from the generic fan codeKevin O'Connor2020-07-051-5/+4
| | | | 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>
* klippy: Rename try_load_module() to load_object()Kevin O'Connor2020-05-081-1/+1
| | | | | | | | 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>
* extruder: Consistently use "extruder" for the primary extruderKevin O'Connor2019-11-071-1/+1
| | | | | | | | No longer allow the primary extruder to be named "extruder0". This avoids internal and external confusion between the printer objects and config section names. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* heater_fan: add get_status methodJanar Sööt2019-06-041-0/+2
| | | | Signed-off-by: Janar Sööt <janar.soot@gmail.com>
* klippy: Convert printer_state("ready") to an event handlerKevin O'Connor2019-01-081-7/+7
| | | | | | | Convert all users of the printer_state("ready") handler to register a "klippy:ready" event handler instead. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* heater_fan: Allow multiple heaters to be defined for a heater_fanKevin O'Connor2018-08-171-4/+7
| | | | | | | Support the case where a single cooling fan is used with multiple extruders. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* fan: Allow the fan shutdown_speed to be configuredKevin O'Connor2018-05-181-2/+1
| | | | | | | Add a shutdown_speed config option to fans so that users can specify the speed on a shutdown event. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* fan: Add a set_shutdown_speed() methodKevin O'Connor2018-04-201-1/+1
| | | | | | | Add a set_shutdown_speed() method so that the heater_fan code does not need to peek into the fan object's internal members. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* fan: Scale fan speed requests between 0 and max_powerKevin O'Connor2018-04-201-4/+2
| | | | | | | | If the fan's max power is limited by the config, then scale speed requests between 0 and max_power. This makes more sense for typical g-code fan speeds. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* heater: Add PrinterHeaters class that stores all sensors and heatersKevin O'Connor2018-04-041-3/+3
| | | | | | | | | | | | Add a PrinterHeaters class that can stores references to available temperature sensors and stores references to instantiated heaters. Add a extras/heater_bed.py file and delay instantiation of the heater_bed object. This allows the heater.py module to be imported earlier during the setup phase, and allows the PrinterHeaters class to be available for registering sensors and heaters. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* klippy: Introduce load_config_prefix() for modules that take parametersKevin O'Connor2018-02-031-1/+1
| | | | | | | | Use both load_config() and load_config_prefix() functions when dynamically loading a module from the extras directory - if the config section name has parameters in it then use load_config_prefix(). Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* fan: Move fan code to extras directoryKevin O'Connor2018-01-281-0/+37
The print cooling fan and printer heater_fan are independent modules that can reside in the extras directory. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>