aboutsummaryrefslogtreecommitdiffstats
path: root/klippy
Commit message (Collapse)AuthorAgeFilesLines
* kinematics: Calculate axis_minimum/axis_maximum in advanceKevin O'Connor2021-01-089-77/+71
| | | | | | | | Calculate the get_status() axis_minimum and axis_maximum fields in advance so that they don't need to be calculated on each get_status() call. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* kinematics: report all axis limits (min/max)Janar Sööt2020-12-288-15/+76
| | | | Signed-off-by: Janar Sööt <janar.soot@gmail.com>
* heaters: Make MINIMUM optional for TEMPERATURE_WAIT command (#3674)Justin Schuh2020-12-241-1/+4
| | | Signed-off-by: Justin Schuh <code@justinschuh.com>
* heaters: Add MAXIMUM option to TEMPERATURE_WAIT commandJustin Schuh2020-12-231-1/+2
| | | | Signed-off-by: Justin Schuh <code@justinschuh.com>
* configfile: Improve error message when a required option is missingKevin O'Connor2020-12-221-3/+5
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* configfile: Minor line wrapping changesKevin O'Connor2020-12-221-18/+16
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* shaper_calibrate: Choose input shapers accounting smoothingDmitry Butyugin2020-12-222-68/+99
| | | | | | | | | Improved algorithm to choose the 'optimal' shaper frequency taking shaper smoothing into account. This may choose a frequency with slightly more vibrations but less smoothing. Also allow users to limit the maximum input shaper smoothing. Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
* heaters: Fix TEMPERATURE_WAIT command with extruder and heater_bedKevin O'Connor2020-12-221-1/+4
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* temperature_mcu: Fix slope on stm32f070Kevin O'Connor2020-12-191-1/+1
| | | | | | The stm32f070 has a negative temperature slope. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* temperature_mcu: Fix slope on stm32f1Kevin O'Connor2020-12-191-1/+1
| | | | | | The stm32f103 has a negative temperature slope. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* endstop_phase: Obtain phases directly from stepper microsteps configKevin O'Connor2020-12-182-37/+42
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stepper: Calculate step_distance from rotation_distanceKevin O'Connor2020-12-182-4/+51
| | | | | | | | Add support for automatically calculating the internal step_distance from new config parameters - rotation_distance, microsteps, full_steps_per_rotation, and gear_ratio. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* heaters: Always register heater pin as a pwm pinKevin O'Connor2020-12-152-9/+4
| | | | | | | There's no need to sometimes register the pin as a 'digital_out' pin instead of as a 'pwm' pin. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* heaters: add last pwm value to heater.get_status (#3621)Stefan Dej2020-12-131-1/+3
| | | Signed-off-by: Stefan Dej <meteyou@gmail.com>
* tmc: Use configfile note_valid=False when inspecting stepper step_distanceKevin O'Connor2020-12-131-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* safe_z_home: Use configfile note_valid=False when inspecting z position_maxKevin O'Connor2020-12-131-5/+5
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* probe: Use configfile note_valid=False when inspecting z position_minKevin O'Connor2020-12-131-2/+4
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* manual_probe: Use configfile note_valid=False when inspecting Z position_endstopKevin O'Connor2020-12-131-8/+7
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* hd44780: Make the 4-bit init sequence more robustKevin O'Connor2020-12-121-1/+1
| | | | | | | | | | | | The previous init sequence relied on the display ignoring commands if they are sent faster than 40us. Some displays may not have this limit. Rework the init to make it more robust to command transmission times. The new init should still transition the display into 4-bit mode even if the display processes commands faster than 40us. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gpiocmds: Merge digital output and soft pwm codeKevin O'Connor2020-12-101-6/+6
| | | | | | | | The digital output commands implement a subset of the software pwm commands. Change the host code to just use the software pwm commands and simplify the micro-controller code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* temperature_mcu: Add enhanced support for monitoring mcu temperatureKevin O'Connor2020-12-102-1/+138
| | | | | | | Add a "temperature_mcu" tool that can monitor builtin micro-controller temperature sensors. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* heaters: Add a TEMPERATURE_WAIT commandKevin O'Connor2020-12-071-2/+23
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* temperature_sensor: Report temperature in statsKevin O'Connor2020-12-061-0/+3
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* pca9685: Use move queue for pwm updatesKevin O'Connor2020-12-041-1/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gpiocmds: Use move queue for software pwmKevin O'Connor2020-12-041-2/+3
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gpiocmds: Use move queue for digital output pinsPascal Pieper2020-12-041-4/+5
| | | | | Signed-off-by: Pascal Pieper <accounts@pascalpieper.de> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* pwmcmds: Use move queue for hard PWMPascal Pieper2020-12-041-2/+3
| | | | | Signed-off-by: Pascal Pieper <accounts@pascalpieper.de> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* mcu: Support reserving move queue slotsPascal Pieper2020-12-041-1/+6
| | | | | Signed-off-by: Pascal Pieper <accounts@pascalpieper.de> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gpiocmds: Send soft pwm cycle_time separately from schedule_soft_pwm_outKevin O'Connor2020-12-041-10/+17
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* docs: Add links to default display.cfg and menu.cfg in Config_Reference.mdKevin O'Connor2020-12-032-2/+10
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* rpi_temperature: Don't read min_temp/max_temp directly from configKevin O'Connor2020-12-031-9/+3
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* rpi_temperature: New module to monitor RPi temperature (#3587)Al2020-12-032-1/+89
| | | | | Module to monitor RPi cpu temperature Signed-off-by: Al Crate <aleph@al3ph.org>
* save_variables: Support saving variables to a disk fileKevin O'Connor2020-12-031-0/+63
| | | | | Signed-off-by: Dushyant Ahuja dusht.ahuja@gmail.com Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* menu: modifications (#3262)Janar Sööt2020-12-031-209/+161
| | | | | | | | | - remove lot of helper methods - differentiate class instantiate from config or directly - don't use 'enable' template rendering when static value is used. - new element 'disabled' - other internal adjustments Signed-off-by: Janar Sööt <janar.soot@gmail.com>
* serialhdl: Improve Python3 compatibilityKevin O'Connor2020-12-011-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* heater_fan: Fix typo causing excessive cpu usageKevin O'Connor2020-12-012-12/+10
| | | | | | 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>
* 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>
* input_shaper: Simplify input shaper type reportingKevin O'Connor2020-12-011-7/+6
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lm75: Start temperature measurements from "klippy:connect" callbackKevin O'Connor2020-12-011-2/+3
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* htu21d: Start temperature measurements from "klippy:connect" callbackKevin O'Connor2020-12-011-2/+3
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* bme280: Start temperature measurements from "klippy:connect" callbackKevin O'Connor2020-12-011-2/+3
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* neopixel: Don't wait for responses when in debug mode.Kevin O'Connor2020-12-011-0/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* webhooks: Improve python3 compatibilityKevin O'Connor2020-12-011-1/+1
| | | | 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>
* spi_temperature: Fix incorrect max31856 spi initializationKevin O'Connor2020-11-231-2/+0
| | | | | | | | | | Writes to the max31856 chip use "burst mode", so only one address during the initialization sequence can be sent. This fixes erroneous "Cold Junction Fault" errors. Reported by @NBouquain. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* hd44780: allow to configure line length (#3543)Martin Hierholzer2020-11-201-8/+15
| | | | | This allows to use 16x4 displays rather than only 20x4. Signed-off-by: Martin Hierholzer <hier@beta-centauri.de>
* board_pins: Use an explicit parameter to specify mcu name(s)Kevin O'Connor2020-11-201-18/+25
| | | | | | | | | | | Add an 'mcu' option to the board_pins config and use that to specify the name of the mcu to apply the aliases to. Support applying the aliases to multiple mcus. Add support for any number of options starting with an "aliases_" prefix. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* docs: Move config reference information to new Config_Reference.mdKevin O'Connor2020-11-181-1/+1
| | | | | | | Move all the config reference information from files in the config/ directory to a new Config_Reference.md document. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* print_stats: exclude time prior to first extrusion from "print_duration"Arksine2020-11-131-1/+10
| | | | Signed-off-by: Eric Callahan <arksine.code@gmail.com>