aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* homing: Merge home_prepare()/home_finalize() into move_begin/move_end eventsKevin O'Connor2020-02-157-74/+63
| | | | | | | | Collapse the "homing:move_begin", "homing:move_end", home_prepare(), and home_finalize() into two new events: "homing:homing_move_begin" and "homing:homing_move_end". This simplifies the homing code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* bme280: handle read timeout exceptionsArksine2020-02-141-5/+12
| | | | Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* hall_filament_width_sensor: Add new filament sensortest3210-d2020-02-144-0/+320
| | | | Signed-off-by: Denis Ignatenko <deniss979@gmail.com>
* config: Update description of z_hop in safe_z_homeKevin O'Connor2020-02-141-8/+10
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: The stm32f1 can only reach 64Mhz when using an internal clockKevin O'Connor2020-02-141-0/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* configfile: Add get_status() to export raw config file informationKevin O'Connor2020-02-132-3/+19
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* config: Minor wording change to gcode_macro rename_existing descriptionKevin O'Connor2020-02-131-5/+5
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* test: Add printer-wanhao-duplicator-9-2018.cfg to printers.testKevin O'Connor2020-02-131-0/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* config: Add Wanhao Duplicator 9 MK1 (#2497)Matt Shirley2020-02-131-0/+106
| | | | | | | | | | | | | | | | | | | | | Also applies to the Monoprice Maker Pro MK1. This config is based on the version from Chris Barnes (https://www.facebook.com/Jarannis) found on https://pastebin.com/raw/wm8PQezy. This config was mostly working and I only had to change a few things: - updated key names for min_point and max_point to mesh_min and mesh_max - enabled PID control - tweaked bounds to allow movement during mesh leveling - removed all comments - decreased homing speed slightly - sane bed mesh sample defaults In response to Kevin O'Connor: - remove pressure_advance setting from extruder section - remove respond section - remove pause_resume section Signed-off-by: Matt Shirley <mdshw5@gmail.com>
* gcode_macro: Support overriding of builtin g-code commandsKevin O'Connor2020-02-122-2/+30
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gcode: Return previous handler from register_command(cmd, None)Kevin O'Connor2020-02-123-6/+7
| | | | | | | | When overriding a g-code command, allow the caller to obtain the previous command handler. Use this feature in homing_override and safe_z_home. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* query_endstops: Add get_status() method that reports the last query stateKevin O'Connor2020-02-122-3/+11
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* homing: Ability to set retract speed between homing moves (#2487)FanDjango2020-02-123-5/+11
| | | | | On the retract move between homing moves, use a different speed (typically a faster one). Signed-off-by: Mike Stiemke <fandjango@gmx.de>
* homing_heaters: Turn off heaters during homing/probing (#2486)FanDjango2020-02-124-0/+88
| | | Signed-off-by: Mike Stiemke <fandjango@gmx.de>
* stepper_enable: Add SET_STEPPER_ENABLE gcode command (#2463)David Smith2020-02-102-3/+34
| | | Signed-off-by: David Smith <davidosmith@gmail.com>
* tmc: Fix typo preventing stealthchop threshold from being setKevin O'Connor2020-02-091-2/+3
| | | | | | Fix typo introduced in commit 67b28522. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Fix typo that broke selection of alternate serial port pinKevin O'Connor2020-02-092-2/+2
| | | | | | Fix a typo in commit aea15250. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* graph_extruder: Add in older pa algorithms for referenceKevin O'Connor2020-02-031-0/+19
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* config: Fix generic-fysetc-f6.cfg stepper_z cs_pinKevin O'Connor2020-02-031-1/+1
| | | | | | Reported by @jourjine Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* delayed_gcode: Fix definition reference for UPDATE_DELAYED_GCODE (#2465)David Smith2020-02-031-1/+1
| | | Signed-off-by: David Smith <davidosmith@gmail.com>
* endstop_phase: Query the stepper step_distance from the stepper objectKevin O'Connor2020-02-011-23/+39
| | | | | | | Don't obtain the step_distance from the config, instead obtain step_distance from the instantiated stepper object. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* tmc: Query the stepper step_distance from the stepper objectKevin O'Connor2020-02-012-17/+28
| | | | | | | Don't obtain the step_distance from the config, instead obtain step_distance from the instantiated stepper object. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* probe: Add support for configuring lift_speedKevin O'Connor2020-01-313-10/+25
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* test: Add generic-bigtreetech-skr-v1.4.cfg to printers.testKevin O'Connor2020-01-281-0/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* config: Add Skr v1.4 configuration (#2423)Junliang Yan2020-01-281-0/+144
| | | Signed-off-by: John Yan <john.yan1019@gmail.com>
* stepcompress: Fix rounding error when interval=0Kevin O'Connor2020-01-251-2/+2
| | | | | | | | | In the rare case where the step generation code finds an interval of zero, it was possible for an integer division of a negative number to cause an incorrect result. Fix that by using the idiv_up() and idiv_down() helpers. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Reset adc calibration prior to starting calibrationKevin O'Connor2020-01-251-8/+17
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Increase adc sample timeKevin O'Connor2020-01-251-4/+4
| | | | | | | Increase the sample time register from 3 to 4 (which adds about ~1.5us to each adc sample). Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* scripts: Revert virtualenv workaroundsKevin O'Connor2020-01-251-3/+1
| | | | | | | | | | | | | Revert "scripts: Disable "virtualenv setuptools" in install-octopi.sh script" This reverts commit 5fc92ff6b7f2c824346fdfd559f2d44978f380ab. Revert "scripts: Install "virtualenv setuptools==44.0.0" in install-octopi.sh" This reverts commit 730c7cfc207aec2199220601018c6fc2b9da0235. The online setuptools repository was fixed upstream, so it is no longer necessary to implement a local virtualenv workaround. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* config: Add example printer-mtw-create-2015.cfg config filemtw3d2020-01-242-0/+149
| | | | | Signed-off-by: Mike Payson <mike@mtw3d.com> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* hd44780: Increase timeout to 40usKevin O'Connor2020-01-241-1/+1
| | | | | | | | | There have been several reports that increasing the delay from 37us to 40us eliminates screen corruption on some clone hd44780 displays. Increase the timeout value so that the standard code works on these displays. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* test: Add generic-simulavr.cfg to printers.testKevin O'Connor2020-01-232-0/+8
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* test: Add printer-monoprice-mini-delta-2017.cfg to printers.testKevin O'Connor2020-01-233-1/+8
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* config: Fix file permissions of generic-flyboard.cfgKevin O'Connor2020-01-231-0/+0
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* delta: Add print_radius option to customize valid XY radiusKevin O'Connor2020-01-232-1/+9
| | | | | | Add ability to override the default XY move checking radius. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* kinematics: Remove support for identifying Z steppersKevin O'Connor2020-01-2310-18/+14
| | | | | | | | | The caller can now determine which steppers are connected to cartesian Z movement via the new stepper.is_active_axis() method. It is therefore no longer necessary for the kinematic code to identify these steppers. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* itersolve: Add ability to query the active_flags stateKevin O'Connor2020-01-234-0/+14
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* config: Add example generic-flyboard.cfg config fileKevin O'Connor2020-01-232-0/+296
| | | | | | Reported by @DJDOUBLEG. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* config: Add example generic-archim2.cfg configKevin O'Connor2020-01-232-0/+161
| | | | | Signed-off-by: Mike Payson <mike@mtw3d.com> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* config: Add an example generic-mks-sgenl.cfg configKevin O'Connor2020-01-232-0/+197
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* config: Add generic-mightyboard.cfgKevin O'Connor2020-01-232-0/+116
| | | | | | Reported by @fragginright. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Only declare alternate usart2 on stm32f0Kevin O'Connor2020-01-233-49/+41
| | | | | | | Also, try to improve the structure of the #if/#else/#endif layout in serial.c. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Don't export spi1a/spi2a on stm32f1Kevin O'Connor2020-01-231-4/+6
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: add alternate pinout for USART2Arne Jansen2020-01-233-1/+16
| | | | | | Added to both generic stm32 and stm32f0 Signed-off-by: Arne Jansen <arne@die-jansens.de>
* stm32: add alternate pinouts for spi1/2Arne Jansen2020-01-231-3/+9
| | | | | | | In addition to spi3, spi1 and spi2 also have alternate pins. Add them as spi1a and spi2a, similar to spi3. Signed-off-by: Arne Jansen <arne@die-jansens.de>
* stm32: performance improvement for spi on stm32f0Arne Jansen2020-01-231-4/+8
| | | | | | | | | | The stm32 has a small queue for spi tx/rx. The current code only uses the spi with a single byte buffer, effectively waiting for each byte to complete before starting the next transfer. This patch changes the structure of spi_transfer() to make use of the queue and achieve back-to-back transfer of bytes on spi. Signed-off-by: Arne Jansen <arne@die-jansens.de>
* stm32: fix spi_transfer for stm32f0Arne Jansen2020-01-231-2/+8
| | | | | | | | | | The current code accesses the DR as 32 bit. This enabled data packing mode, effectively adding a 00 byte between each sent byte. The receive side had similar problems. To prevent this, all accesses are 8 bit now, even though this is not necessary on stmf[14]. Signed-off-by: Arne Jansen <arne@die-jansens.de>
* lpc176x: Add support for ssp1 (#2393)akatik2020-01-143-22/+39
| | | Signed-off-by: Andrey Kovalev <aka@pxe.ru>
* stm32f0: Remove hal based stm32f0 implementationEug Krashtan2020-01-14180-260688/+0
| | | | | Signed-off-by: Eug Krashtan <eug.krashtan@gmail.com> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: STM32F0 CAN featureEug Krashtan2020-01-144-0/+290
| | | | | Signed-off-by: Eug Krashtan <eug.krashtan@gmail.com> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>