aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* thermistor: Fallback to using beta if Steinhart-Hart c3 is negativeKevin O'Connor2018-04-091-4/+11
| | | | | | | | If the c3 coefficient is negative it can cause the adc calculations to fail. The c3 shouldn't be negative in practice, so fallback to a simple beta calculation in that case. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* thermistor: Add support for defining custom thermistorsKevin O'Connor2018-04-093-2/+54
| | | | | | Add the ability to define a new thermistor type in the config file. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* config: Update indentation of display section in example-extras.cfgKevin O'Connor2018-04-091-9/+8
| | | | | | Use the same indentation as the other sections. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* docs: Update installation document for OctoPrint 1.3.7Kevin O'Connor2018-04-091-3/+4
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* Adjusted Tronxy X5s settingsArkadiusz Gluszyk2018-04-091-0/+11
| | | | | Signed-off-by: Arkadiusz Gluszyk <agluszyk@cs.com> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* config: Add display section to default Creality CR10s configKevin O'Connor2018-04-081-0/+6
| | | | | | | The CR10s uses a "12864" type display on the standard RAMPS pins. Reported by @jm493. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* pid_calibrate: Make sure to unregister new control class on errorKevin O'Connor2018-04-061-0/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* heater: Move Thermistor and Linear to their own files in extras/Kevin O'Connor2018-04-044-124/+154
| | | | | | | | Move the Thermistor code to a new thermistor.py module. Move the Linear code to a new adc_temperature.py module. This simplifies the heater.py code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* heater: Move adc logic into Thermistor classKevin O'Connor2018-04-042-35/+51
| | | | | | | | The Thermistor (and Linear) class should handle all the details of reading the ADC values and converting them to temperatures. So, move that logic out of the Heater() class. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* heater: Merge ThermistorBeta class into Thermistor classKevin O'Connor2018-04-041-13/+15
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* heater: Add PrinterHeaters class that stores all sensors and heatersKevin O'Connor2018-04-047-31/+67
| | | | | | | | | | | | 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>
* pins: Remove module level get_printer_pins() and setup_pin() functionsKevin O'Connor2018-04-049-44/+36
| | | | | | | | Most callers did a lookup of the pins module via printer.lookup_object("pins"). Use that as the standard method and remove these less frequently used methods. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* toolhead: Limit junction speed of short movesKevin O'Connor2018-04-031-3/+8
| | | | | | | | | | | | | | | | | | | | The existing junction algorithm limits the speed between two moves by determining the maximum speed an arc between those two moves would have if the cetripetal acceleration of that arc did not exceed the printer's maximum acceleration. However, should the slicer send an actual arc to the printer, then the existing junction algorithm would not impose any significant limit on the travel speed of that arc. This would permit the head to travel in a circle at high velocity and with a greater centripetal acceleration than the printer's maximum acceleration. To avoid this, impose a limit on the junction velocity of short moves so that an approximate centripetal acceleration of that move does not exceed the move's acceleration limit. Suggested by Michael Barbour. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* bed_tilt: Apply bed_tilt_calibrate settings to current sessionKevin O'Connor2018-04-031-6/+15
| | | | | | | | Apply the bed tilt settings immediately after finding them. This makes it easier for users to perform automatic tilt calibration at the start of every print. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* extruder: Log SET_PRESSURE_ADVANCE changesKevin O'Connor2018-04-031-3/+5
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* klippy: Automatically clear rollover_info on each restartKevin O'Connor2018-04-035-20/+21
| | | | | | | Automatically clear the information printed at the start of each log file rollover on a klippy internal restart. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* extruder: Add SET_PRESSURE_ADVANCE command.Michael Barbour2018-04-032-5/+25
| | | | Signed-off-by: Michael Barbour <barbour.michael.0@gmail.com>
* docs: Update release notes for v0.6.0 releaseKevin O'Connor2018-03-311-0/+31
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* docs: Add Patreon link to FAQ pageKevin O'Connor2018-03-311-11/+16
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* heater: Add some comments to the thermistor mathKevin O'Connor2018-03-291-1/+3
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* docs: Update G-Codes.md with recent output_pin changesKevin O'Connor2018-03-281-3/+3
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* docs: Add a section on adding new host modules to Code_Overview.mdKevin O'Connor2018-03-281-1/+73
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stepstats: Add documentation clarificationKevin O'Connor2018-03-231-0/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* display: Round temperature and position to nearest whole numberKevin O'Connor2018-03-191-5/+5
| | | | | | | The "%d" formatting truncates a floating point number - use "%.0f" to show a rounded number. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* display: Remove unneeded semicolons from fileKevin O'Connor2018-03-191-7/+8
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* docs: Recommend running PID_CALIBRATE in Config_checks.mdKevin O'Connor2018-03-181-0/+23
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* pid_calibrate: Move PID calibration logic from heater.py to new fileKevin O'Connor2018-03-185-147/+147
| | | | | | | | Drop support for M303 and PID_TUNE, and replace it with a new PID_CALIBRATE command. Move the logic for this command from heater.py to a new pid_calibrate.py file in the extras/ directory. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* config: Remove tabs from printer-wanhao-duplicator-i3-v2.1-2017.cfgKevin O'Connor2018-03-181-13/+13
| | | | | | Remove tabs from example config file and replace with spaces. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* docs: Fix typo in M220 description in G-Codes.mdKevin O'Connor2018-03-181-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* config: Update generic-cramps.cfg with P9_23 machine enableKevin O'Connor2018-03-181-0/+5
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* config: Change pullup_resistor to 2000 in generic-cramps.cfgKevin O'Connor2018-03-171-0/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* probe: Add z_offset parameterKevin O'Connor2018-03-175-14/+15
| | | | | | | | | Move the probe_z_offset parameter from delta_calibrate and bed_tilt_calibrate to a z_offset parameter within the probe config section. It's easier to understand the z offset setting when it is in the probe config section. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* bed_tilt: Take into account the XY position used with z_virtual_endstopKevin O'Connor2018-03-172-8/+54
| | | | | | | | If a z_virtual_endstop is in use, then record the last XY position that is used when the Z is homed. Use that XY position to report what change is needed to the z position_endstop. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* bed_tilt: Require at least 3 probing points for bed_tilt_calibrateKevin O'Connor2018-03-171-0/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* probe: Default z_position to the configured minimum position on Z axisKevin O'Connor2018-03-172-14/+10
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* output_pin: Move pwm and digital output pins to new module in extras/Kevin O'Connor2018-03-174-87/+59
| | | | | | | | Rename the digital_output, pwm_output, and static_pwm_output config sections to output_pin and move to a new module in the extras/ directory. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* static_digital_output: Add static_digital_output section to extras/Kevin O'Connor2018-03-172-9/+17
| | | | | | | Move the code for the static_digital_output config section from chipmisc.py to a new file in the extras/ directory. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* replicape: Add config controls for the servo[01]_enable linesKevin O'Connor2018-03-172-0/+10
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gcode: Position returned by M114 should be relative to last G92Kevin O'Connor2018-03-153-17/+42
| | | | | | | | It looks like OctoPrint is expecting the result from M114 to be relative to the last G92 command. Also, introduce GET_POSITION to report the actual location that the printer is at. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* docs: Add "will heaters be turned off on a crash" item to FAQKevin O'Connor2018-03-131-1/+13
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* verify_heater: Provide additional information on a heater errorKevin O'Connor2018-03-121-2/+8
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* klippy: Rework starting error messageKevin O'Connor2018-03-121-1/+1
| | | | | | | Commit 9bc4239e now emphasizes the first line of a multi-line error message, so rework startup_message to conform to that. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* probe: Add some hints for common errors during PROBEKevin O'Connor2018-03-121-1/+18
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gcode: On a multi-line error message, report the first line twiceKevin O'Connor2018-03-121-2/+2
| | | | | | | | Report the first line of a multi-line error message twice - once as part of the informational content, and once with the "!!" error prefix. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* virtual_sdcard: Fix typo in seek error handlingKevin O'Connor2018-03-121-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* config: Reword the min_temp/max_temp description in example.cfgKevin O'Connor2018-03-121-4/+8
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* heater: Allow min_temp to go below zeroKevin O'Connor2018-03-121-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* verify_heater: Scale hysteresis duration checkKevin O'Connor2018-03-112-13/+17
| | | | | | | | | | If a heater falls out of the target range, accumulate the temperature differences to determine if an error should be raised. This should make it less likely to report an error for heaters that drift slightly out of range, and it should make error reporting faster for heaters that rapidly fall out of range. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* verify_heater: Change default hysteresis to 10 degreesKevin O'Connor2018-03-112-6/+6
| | | | | | | A default of 4 degrees and 10 seconds may be too aggressive - change the default to 10 degrees and 15 seconds. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* verify_heater: Add initial support for verifying heaters and sensorsKevin O'Connor2018-03-114-4/+91
| | | | | | | Add runtime checks to heaters and temperature sensors to check for possible hardware faults. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>