aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* config: Add example config file for the Einsy-Rambo boardKevin O'Connor2018-05-201-0/+99
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* tmc2130: Add initial support for TMC2130 stepper motor driversKevin O'Connor2018-05-202-0/+108
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gcode: Reset extrude_factor and extruder position on a tool changeKevin O'Connor2018-05-201-0/+2
| | | | | | | The extrude_factor and extruder position are specific to the current extruder, so reset them to default values on a Tn command. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gcode: Raise an error if a duplicate command is registeredKevin O'Connor2018-05-203-0/+4
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* extruder: Fix SET_PRESSURE_ADVANCE so that it works with multiple extrudersKevin O'Connor2018-05-203-5/+16
| | | | | | | Use the new gcode.register_mux_command() so that SET_PRESSURE_ADVANCE works correctly with multiple extruders. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* output_pin: Use new gcode.register_mux_command()Kevin O'Connor2018-05-201-13/+5
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* servo: Use new gcode.register_mux_command()Kevin O'Connor2018-05-201-8/+4
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gcode: Add ability to register a "mux" commandKevin O'Connor2018-05-201-0/+23
| | | | | | | | | | It's common to add commands that dispatch to a particular object instance depending on the value of a command parameter. (For example, the command "SET_SERVO SERVO=xyz" wants to be handled by the particular "xyz" servo instance.) Add a register_mux_command() helper to gcode.py make it easier to do this. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* probe: Verify horizontal_move_z not less than probe's z_offsetKevin O'Connor2018-05-201-0/+3
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* probe: Move code from bed_tilt and delta_calibrate into ProbePointsHelperKevin O'Connor2018-05-203-53/+56
| | | | | | | | Move the common config reading and probe object lookup from the bed_tilt.py and delta_calibrate.py code into the ProbePointsHelper class. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stepper: Raise an error if position_endstop is not in min/max rangeKevin O'Connor2018-05-182-11/+22
| | | | | | | | Raise an error during config parsing if the position_endstop is not between the position_min and position_max. This avoids a confusing error message during homing. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* fan: Allow the fan shutdown_speed to be configuredKevin O'Connor2018-05-185-25/+41
| | | | | | | 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>
* Add temperature controlled fansDouglas Hammond2018-05-172-26/+123
| | | | Signed-off-by Douglas Hammond <wizhippo@gmail.com>
* config: Fix printer-tronxy-x5s-2018.cfg file flagsKevin O'Connor2018-05-171-0/+0
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* config: Add example config file for the creality cr10 miniKevin O'Connor2018-05-171-0/+88
| | | | | | | The cr10 mini is the same as the cr10, but with different Y and Z dimensions. Reported by @cassianoleal. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* util: Change the /tmp/printer pty to be group readableKevin O'Connor2018-05-161-1/+3
| | | | | | | | For some reason, Linux creates the pseudo tty with group writable permissions, but not group readable. Use chmod to allow the device to also be group readable. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* config: Update printer-creality-cr10s-2017.cfg to use z position_max=400Kevin O'Connor2018-05-151-1/+1
| | | | | | The cr10s should has a z length of 400mm. Reported by @nic-str. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stepper: Introduce and use gpio_out_toggle_noirq()Kevin O'Connor2018-05-1513-10/+46
| | | | | | | | | | | | | | | The gpio_out_toggle() function in the sam3x8e and stm32f1 code was only valid if it was called with irqs disabled. Commits 018c5daa and 9c52ad43 enabled the lcd code which called gpio_out_toggle() with irqs enabled. This could cause corruption of the gpio state. Introduce a gpio_out_toggle_noirq() function that will only be invoked with irqs disabled, and fix gpio_out_toggle() on sam3x8e and stm32f1 so that it safe to call even if irqs are enabled. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stepper: Fix typo in error report - name should be self.nameKevin O'Connor2018-05-141-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* homing: Apply speed rounding after calling home_prepare()Kevin O'Connor2018-05-141-4/+9
| | | | | | | | | | The step speed rounding and the cpu delay must be run after running the endstop specific preparation code. Otherwise, a delay in the home_prepare() code could undo those calculations. Specifically, this could lead to errors on a multi-mcu setup when the Z is homed using a virtual_z_offset and there is a delay in the activate_gcode section. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* temperature_fan: Add support for temperature-triggered fan.Michael Barbour2018-05-103-7/+84
| | | | Signed-off-by: Michael Barbour <barbour.michael.0@gmail.com>
* config: Add example generic-radds.cfg config fileLukas Wingerberg2018-05-101-0/+109
| | | | | Signed-off-by: Lukas Wingerberg <lukas@wingerberg.de> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* console: Fix handling of bad commandsKevin O'Connor2018-05-081-1/+0
| | | | | | | Don't return early on a command error - continue to process remaining commands and pop commands from the queue. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* linux: Convert linux SPI code to use the generic spicmds.c codeKevin O'Connor2018-05-074-23/+52
| | | | | | | | | | Use the generic spi send/receive code on Linux. Update the replicape code to use the updated command format. Also, update the replicape code to turn off the stepper motors on a shutdown event. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* sam3x8e: Add SPI supportKevin O'Connor2018-05-074-1/+132
| | | | | Signed-off-by: Petri Honkala <cruwaller@gmail.com> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* spicmds: Rework SPI message transmissionKevin O'Connor2018-05-077-45/+244
| | | | | | | | | Improve the SPI message transmit system. Add support for bus speed and bus mode. Add support for sending SPI messages on shutdown. Signed-off-by: Petri Honkala <cruwaller@gmail.com> Signed-off-by: Douglas Hammond <wizhippo@gmail.com> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* msgproto: Support sending empty strings from create_message()Kevin O'Connor2018-05-071-1/+3
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32f1: Enable lcd chip supportKevin O'Connor2018-05-071-0/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* sam3x8e: Enable lcd chip supportKevin O'Connor2018-05-071-0/+1
| | | | | | Testing shows the hd44780 and st7920 chips do work on the Due. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* serialqueue: Fix batching of BACKGROUND_PRIORITY_CLOCK messagesKevin O'Connor2018-05-051-1/+2
| | | | | | | | | In order to properly delay BACKGROUND_PRIORITY_CLOCK messages, they must be 5ms beyond the minimum defined by MIN_REQTIME_DELTA. So, add both MIN_REQTIME_DELTA and MIN_BACKGROUND_DELTA to the timing of these messages. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* clocksync: Change timer frequency to avoid resonating with other timersKevin O'Connor2018-05-051-2/+4
| | | | | | | | | | | If the clock querying messages occur at a similar frequency to other events on the micro-controller or host, then it's possible for the load created by those other events to skew the clock synchronization. In particular, the 500ms lcd screen update could resonate with the 1 second clock query. Use an unusual clock querying frequency to avoid this issue. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* FAQ: Add item on TMC2208 being disabled in the middle of a printKevin O'Connor2018-05-051-3/+18
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* chelper: Fix hub-ctrl compilationcruwaller2018-05-051-1/+1
| | | | Signed-off-by: Petri Honkala <cruwaller@gmail.com>
* thermistor: Add Honeywell 100K and MGB18 thermistor definitionsKevin O'Connor2018-04-302-1/+4
| | | | | | Add two additional thermistors (as suggested by Tim Miller). Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* config: Add exaple generic-rumba.cfg config fileKevin O'Connor2018-04-301-0/+111
| | | | | | | Add config file for the RUMBA board (from config provided by Tim Miller). Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* chelper: Move the host C code to a new klippy/chelper/ directoryKevin O'Connor2018-04-308-27/+29
| | | | | | | Move the C code out of the main klippy/ directory and into its own directory. This reduces the clutter in the main klippy directory. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* config: Fix typo in adc_temperature section (Ohms vs Volts)Kevin O'Connor2018-04-301-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* avr: Do not use Idle modeKevin O'Connor2018-04-282-9/+1
| | | | | | | | | | | | The AVR chips (bizarrely) start an ADC conversion when entering Idle mode. This behavior can cause the ADC to be busy when a sample is required. Worse, if a series of events cause the cpu to enter and leave Idle mode with a timing similar to the ADC checking rate then it can cause the ADC to show as busy for extended periods. This could cause high MCU load and possibly lead to a "Rescheduled timer in the past" shutdown. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* avr: Explicitly set ADCSRA on each conversion startKevin O'Connor2018-04-251-7/+10
| | | | | | | | Don't logically or the ADSC bit on the start of a conversion - explicitly set the full contents of the register. Also, clear the ADIF flag on each write. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* avr: Clean up serial port register aliasesKevin O'Connor2018-04-252-31/+38
| | | | | | | | Define unique register aliases for all of the hardware serial port definitions. This makes it easier to deal with the AVR chips that use different register names. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* docs: Improve FAQ update software entry (use make menuconfig ; make clean)Kevin O'Connor2018-04-251-0/+4
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* virtual_sdcard: Add logging on start, stop, stats, and shutdownKevin O'Connor2018-04-231-0/+18
| | | | | | Add additional logging to the virtual_sdcard support. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* docs: Fix internal link description in Code_Overview.mdKevin O'Connor2018-04-231-2/+3
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* toolhead: Add a SET_VELOCITY_LIMIT commandKevin O'Connor2018-04-202-3/+42
| | | | | | | Add a command to adjust the maximum velocity, acceleration, and junction deviation parameters. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gcode: Add minval/maxval/above/below options to get_X parsersKevin O'Connor2018-04-205-45/+53
| | | | | | Add value checking to gcode parameter parsing code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* fan: Add a set_shutdown_speed() methodKevin O'Connor2018-04-202-1/+3
| | | | | | | 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>
* gcode: Add a SET_GCODE_OFFSET commandKevin O'Connor2018-04-203-6/+24
| | | | | | | | The M206 command is confusing (it uses negative offsets) and isn't very flexible. Add a new SET_GCODE_OFFSET command to make it easier to add virtual offsets to gcode commands. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gcode: Rename homing_add to homing_offsetKevin O'Connor2018-04-201-17/+17
| | | | | | | | | The M206 command is confusing as positive values in that command result in negative offsets to future g-code commands. Perform the parameter negation in the M206 command instead of storing it that way internally. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* probe: Limit Z lift speed to be the same as the probing speedKevin O'Connor2018-04-201-3/+7
| | | | | | | When using an automatic probe, limit the Z lift speed to be no greater than the Z probing speed. This can reduce Z jerks during probing. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* klippy: Reword the error messages during config file parsingKevin O'Connor2018-04-201-5/+5
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>