aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* config: Add example generic-mini-rambo.cfg config fileKevin O'Connor2018-01-171-0/+103
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* config: Add tronxy x5s configDouglas Hammond2018-01-161-0/+79
| | | | | Signed-off-by: Douglas Hammond <wizhippo@gmail.com> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gcode: Use reset_last_position() from cmd_G28()Kevin O'Connor2018-01-161-2/+1
| | | | | | | Use the existing reset_last_position() code in cmd_G28() instead of manually implementing the logic. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* extruder: Remove unused variable self.configKevin O'Connor2018-01-161-3/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* Add a CR-10S configuration file.Cymen Vig2018-01-161-0/+75
| | | | | Signed-off-by: Cymen Vig <cymenvig@gmail.com> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* graphstats: Use alpha transparency when plotting the statsKevin O'Connor2018-01-141-9/+7
| | | | | | | | | | | | | Use an alpha transparency on each of the stats, so that it is possible to see how the values overlap. Also, always enable the "awake time" stat - just use a lower alpha transparency for it. Also, explicitly set the graph size as some version of matplotlib have a different default. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* graphstats: Fix filtering of normal buffer_time runoff statsKevin O'Connor2018-01-141-19/+25
| | | | | | | Update the mechanism to filter out cases where buffer_time is below MAXBUFFER so that it works with the statistics currently generated. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* docs: Add a FAQ item on steps to upgrade the softwareKevin O'Connor2018-01-121-0/+36
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* toolhead: Improve tracking of print_stallKevin O'Connor2018-01-121-7/+9
| | | | | | | | | | | | | | The previous code increases print_stall if a move is proactively flushed due to buffer_time_low and a follow up move is ready to send before the existing moves are fully retired. However, this would not track the case where a move is proactively flushed and it takes an extended amount of time to get sufficient moves to refill the queue. Change the code so that print_stall increases anytime a new move is queued after a proactive flush and there are existing moves not yet fully retired. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* logextract: Fix parsing of "is_shutdown" messagesKevin O'Connor2018-01-121-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* config: Update avrsim.cfg to use unique pinsKevin O'Connor2018-01-121-1/+1
| | | | | | | | Commit 3833669c added checking that each pin is used once in the config. This exposed an error in the avrsim.cfg testing config - analog1 conflicts with ar25. Use analog7 to avoid this. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* docs: Update Debugging.md with information on logextractKevin O'Connor2018-01-111-5/+28
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* heater: Report PID tuning results via the g-code terminalKevin O'Connor2018-01-101-5/+20
| | | | | | | | Determine the median period from the pin tuning tests and use that to recommend a set of PID parameters. Report the results over the g-code terminal. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* chipmisc: Enable replicape steppers dynamicallyKevin O'Connor2018-01-101-4/+25
| | | | | | | | | | Enable all the steppers via the shift registers when the first stepper is enabled, and disable all the steppers once all steppers are disabled. This avoids having to enable all the steppers all of the time. Note that, this support is independent from the current control for each stepper, which is still done individually. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* chipmisc: Fix replicape enable line setupKevin O'Connor2018-01-102-1/+14
| | | | | | | The enable lines are not one per stepper - instead there are 5 distinct enable settings. Handle them properly. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* chipmisc: Support start values on pca9685 pinsKevin O'Connor2018-01-101-18/+25
| | | | | | | Default the pca9685 enable line on if any of the pins attached to it have a non-zero start value. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* pins: Check if the same pin is referenced via different aliasesKevin O'Connor2018-01-103-28/+37
| | | | | | | | Change the update_command() call to use a new PinResolver class. In that new class, verify that the same pin isn't referenced in two different parts of the config using different aliases for the pin. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stepper: Automatically detect and handle shared stepper enable linesKevin O'Connor2018-01-103-16/+47
| | | | | | | | | | | It's common for multiple steppers to use the same stepper enable line. Detect this and only create a single digital_out oid on the micro-controller. Also, prohibit any other pin from being used multiple times in the config file. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* pins: Rename parse_pin_desc() to lookup_pin()Kevin O'Connor2018-01-103-13/+13
| | | | | | | Always set the pin_params['type'] field on a pin lookup. Rename parse_pin_desc() to lookup_pin() to make the change more clear. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* config: Config file for Anycubic i3 Megamjedlinski2018-01-081-0/+87
| | | | | Signed-off-by: Marcin JedliƄski <mjedlinski@gmail.com> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* mcu: Setup static values via setup_start_value() callKevin O'Connor2018-01-082-41/+37
| | | | | | | Add an "is_static" setting to setup_start_value() and remove the setup_static() method. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* config: Create creality-cr10nerobot2018-01-081-0/+82
| | | | | Signed-off-by: Steven Daglish <s.c.daglish@gmail.com> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* extruder: Fix pressure advance on tiny moves with over extrusionsKevin O'Connor2018-01-081-2/+5
| | | | | | | | | | | | The extruder check_move() code will permit moves with huge extrusion ratios if the amount extruded is tiny. (Some slicers emit these silly moves - they are allowed because they are harmless.) Unfortunately, the pressure advance code did not handle the huge extrusion ratios - it would result in a massive, near instantaneous, extruder move in an attempt to build pressure in the extruder. Catch this case and limit the impact to the pressure advance code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* docs: Note pressure_advance over 0.20 is unlikely to improve qualityKevin O'Connor2018-01-081-1/+4
| | | | | | | Update the pressure advance tuning document to note that 0.20 is likely the ceiling of a useful pressure advance setting. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* mcu: Only report an MCU timeout onceKevin O'Connor2018-01-081-2/+4
| | | | | | Don't flood the log with timeout messages. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* config: Adopt Anet A8 cfg, Anet v1.0-1.5 Boardstilsonm2018-01-071-0/+79
| | | | | | | | | | This configuration file should work as a base for Anet A8 printers using the stock Anet v1.0-1.5 boards from late 2016-2017, which are based around the AVR atmega1284p. Minor tweaks may be required to such things as /dev/serial/by-id/, thermistor sensor types, and offsets for carriage and bed. Signed-off-by: Matt Tilson <tilsonm09@gmail.com>
* avr: Clear the TCNT1 register on timer startupKevin O'Connor2018-01-071-1/+2
| | | | | | Just to be safe, clear the TCNT1 register during init. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* avr: Clear the ADCSRA/ADCSRB registers on ADC initKevin O'Connor2018-01-071-2/+2
| | | | | | | When initializing the ADC, explicitly clear the registers (instead of logically or'ing them with their previous values). Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* docs: Add a table of contents to the FAQKevin O'Connor2018-01-051-2/+12
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* config: Note the need to flash a bootloader on the MelziKevin O'Connor2018-01-051-5/+6
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* avr: Only use the avrdude "wiring" protocol on atmega2560 devicesKevin O'Connor2018-01-052-1/+7
| | | | | | | | It appears the most common type of avrdude protocol for devices other than the atmega2560 is the "arduino" protocol. Update the build to select a different protocol based on the avr processor type. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* docs: Update installation document with pointers to FAQKevin O'Connor2018-01-042-27/+73
| | | | | | Add some pointers to the FAQ for common pitfalls during installation. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* config: Added Wanhao Duplicator i3 Plus configurationJosh Sutinen2018-01-041-0/+73
| | | | | | | | | | | The Wanhao Duplicator i3 Plus (aka Maker Select Plus, Microcenter Powerspec Plus, and others) uses an atmega2560 AVR. The config is based on generic-ramps.cfg with pin numbers updated from the official Wanhao Marlin sources at https://github.com/garychen99/Duplicator-i3-plus Signed-off-by: Josh Sutinen <josh@damagedgoodz.net> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* config: Update TAZ6 defaults for hotendChris Lee2018-01-041-4/+4
| | | | | | Use values from Lulzbot fork of Marlin. Signed-off-by: Chris Lee <clee@mg8.org>
* gcode: Add support for M221 (set extrude factor) g-code commandKevin O'Connor2018-01-031-12/+32
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gcode: Add support for M220 (set speed factor) g-code commandKevin O'Connor2018-01-031-4/+11
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* heater: Added config for heater PWM cycle time.Andy Silverman2018-01-032-2/+8
| | | | | | | | | | | | | | | | | Added the pwm_cycle_time option for heater config sections. Defaults to previous value of 0.100 seconds, but may be reduced to shorter times at the expense of MCU workload and possible MOSFET heating, depending on controller design. Some printers that need bed PID to be enabled, notably the Felixprinters series, are known to benefit from shorter cycle times, as the default 10hz rate results in excessive voltage supply droop. While this option can be used on extruder heaters as well, there is not expected to be any particular benefit from doing so unless the extruder heater presents a particularly large load. Signed-off-by: Andy Silverman <andrewsi@outlook.com> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* config: Add Lulzbot TAZ6 printer configurationChris Lee2018-01-031-0/+110
| | | | | Signed-off-by: Chris Lee <clee@mg8.org> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* heater: Provide symbolic names for pid check_busy (aka M109 / M190)Kevin O'Connor2018-01-031-1/+5
| | | | | | | | Add PID_SETTLE_DELTA and PID_SETTLE_SLOPE constants to the code to try and make it a little more clear how the wait for temperature code works. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gcode: Don't wait for temperature if the temperature is disabledKevin O'Connor2018-01-031-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* docs: Minor update to square.scadKevin O'Connor2018-01-022-29/+29
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* logextract: Add support for extracting shutdown info on multiple mcusKevin O'Connor2018-01-021-38/+70
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* graphstats: Add support for generating a graph of mcu frequencyKevin O'Connor2017-12-301-4/+53
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* graphstats: Use a smaller font in the graph legendKevin O'Connor2017-12-301-2/+4
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* graphstats: Fix case where an Xwindows display may not be availableKevin O'Connor2017-12-301-5/+6
| | | | | | | Matplotlib will try to open a display by default - tell it not to do that so that it can run in batch mode on headless machines. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* logextract: Fix handling of messages with retransmitsKevin O'Connor2017-12-291-1/+2
| | | | | | | Properly handle the case where the original sequence number of a message is not known. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* docs: Add an initial configuration checklist documentKevin O'Connor2017-12-264-2/+133
| | | | | | | Provide a document with basic steps that a user can run to verify that the pins in the configuration file are set correctly. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* docs: Add a CONTRIBUTING documentKevin O'Connor2017-12-242-0/+75
| | | | | | | Add an initial document detailing best practices for contributing to the document. Add the "developer certificate of origin" document. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gcode: Dump internal g-code state in dump_debug()Kevin O'Connor2017-12-211-0/+7
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gcode: Group similar G-Code commands togetherKevin O'Connor2017-12-211-44/+49
| | | | | | | Group commands by category instead of listing them in numerical order. This is just code movement; no code changes. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>