Commit Graph

4560 Commits

Author SHA1 Message Date
Kevin O'Connor 9ec9742484 extruder: Add support for reversing the direction of extruder stepper movement
Extend SET_EXTRUDER_ROTATION_DISTANCE to support reversing the
direction of extruder movement.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-02-10 13:24:21 -05:00
Kevin O'Connor 189188e3ca extruder: Add a SET_EXTRUDER_ROTATION_DISTANCE command
Support altering the extruder distance using the higher-level
rotation_distance.  This is in preparation for removal of the
SET_EXTRUDER_STEP_DISTANCE command.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-02-10 13:24:21 -05:00
Kevin O'Connor 6d7c03365a logextract: Add support for reordering stepper queue messages by timestamp
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-02-07 00:06:40 -05:00
Kevin O'Connor c8560b367d logextract: Add support for reordering trapq moves by timestamp
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-02-06 23:42:01 -05:00
Kevin O'Connor 739ff465a7 logextract: Support reordering API Server messages by timestamp
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-02-06 23:15:28 -05:00
Kevin O'Connor 6cd1e794f7 logextract: Breakup shutdown parsing into classes
Separate out message parsing into individual classes.  This should
make the code a little eaiser to understand.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-02-06 23:14:31 -05:00
adelyser 9174c0241e
stm32: Fix ADC on stm32h7 (#5239)
Don't reset the ADC peripheral if the clock is already enabled.
Fixes #5236

Signed-off-by: Aaron DeLyser <bluwolf@gmail.com>
2022-02-06 18:29:53 -05:00
cbc02009 54646c77dc
bme280: fix integer handling for python3 in bme280.py (#5237)
Singed-off-by: Christopher Conroy <cbc02009@gmail.com>
2022-02-06 12:15:35 -05:00
Kevin O'Connor 0143199175 Makefile: Improve handling of board symbolic link creation
Running "make" directly after a "make distclean" can lead to a corrupt
out/board symbolic link.  Rework the make rules so that the board
symbolic link is created in a new make instance that has the updated
definition of CONFIG_BOARD_DIRECTORY.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-02-03 17:39:57 -05:00
Kevin O'Connor 427f4b456e docs: Fix unescaped angle brackets in G-Codes.md
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-02-01 12:19:23 -05:00
Kevin O'Connor 30be45c1ae docs: Fix link in G-Codes.md
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-02-01 12:11:22 -05:00
Kevin O'Connor c80552f9e7 docs: Reorganize layout of G-Codes.md
Break listing up by module name.  Provide links to "extended"
commands. Sort reference by module name.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-02-01 11:59:55 -05:00
Kevin O'Connor 9c4172784a docs: Update Resonance_Compensation.md to recommend SET_VELOCITY_LIMIT
It's no longer necessary to update the printer.cfg file to alter the
max_accel and square_corner_velocity parameters.  Update the
Resonance_Compensation.md document to reflect this.

Also, recommend using STEP_DELTA in the TUNING_TOWER commands.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-01-31 18:36:42 -05:00
Lasse Dalegaard a7b01857f5 flash_usb: use sudo for rp2040 flashing
The rp2040 can be flashed without sudo when using udev rules to give the
user permission, but in a standard configuration sudo is required.

Here we make it possible for flash_usb to use sudo for the rp2040
target, and make it the default when using `make flash` for the rp2040.
As for other targets, one can set `NOSUDO=1` to not call through sudo.

Signed-off-by: Lasse Dalegaard <dalegaard@gmail.com>
2022-01-31 11:10:02 -05:00
Haxk20 15ffa85954
doc: Fix typo in Manual_Level.md (#5161)
Just a small commit fixing a tiny typo i noticed.

Signed-off-by: Martin Botka <martin.botka@somainline.org>
2022-01-29 18:18:03 -05:00
adelyser b414fc4975
spi_flash: Add btt-skr-bx-se to the board types (#4951)
Signed-off-by: Aaron DeLyser <bluwolf@gmail.com>
2022-01-29 13:32:48 -05:00
adelyser c15d38b973
config: Add BIQU BX printer config (#4950)
Signed-off-by: Aaron DeLyser <bluwolf@gmail.com>
2022-01-29 13:31:41 -05:00
Kevin O'Connor 31cefe15cf docs: Improvements to RPi_microcontroller.md
Wraps lines to 80 columns.  Only use triple backticks on multi-line
code excerpts.  Add backticks around "sudo raspi-config".  Move
"Enabling SPI" section to be near pwm and gpio configuration.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-01-28 18:27:07 -05:00
Sergey1560 fb6d6d381c
stm32: Add remap CAN to PD0/PD1 for stm32f103 (#5173)
Signed-off-by: Sergey Terentiev <sergey@terentiev.me>
2022-01-26 18:06:55 -05:00
Dmitry Butyugin 40702bf9db docs: Updated simulavr building instructions
Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
2022-01-26 18:02:24 -05:00
Yifei Ding 7d57a7c4c8
docs: Various minor fixes (#5175)
Signed-off-by: Yifei Ding<yifeiding@protonmail.com
2022-01-26 18:00:18 -05:00
Nick Douma 28b568a6ac
gcode_arcs: detect CW / CCW move with renamed G2/G3 command (#5096)
The G2 / G3 command might be renamed using `gcode_macro` + `rename_existing`. This change allow detecting clockwise / anti-clockwise moves when the command gets renamed.

Signed-off-by: Nick Douma <n.douma@nekoconeko.nl>
2022-01-22 20:47:51 -05:00
D4SK 2f1edac922
tmc: Fix number of arguments in phase endstop warning (#5184)
Signed-off-by: Konstantin Vogel <konstantin.vogel@gmx.net>
2022-01-22 20:41:44 -05:00
Kevin O'Connor f97fd7c6e3 gcode: Handle M117 and M118 commands that start with a special character
Commit 7ef7bf60 broke the special handling for M117 commands that
start with a number or special character.  Fix that support and extend
to M118 as well.

Also improve handling of commands not separated by a space (eg,
"M117HELLO").

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-01-18 11:34:40 -05:00
Kevin O'Connor 02d5f9754f extruder: Support disassociating a stepper from all extruders
Support SYNC_STEPPER_TO_EXTRUDER commands with an EXTRUDER parameter
set to an empty string.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-01-16 19:01:15 -05:00
Kevin O'Connor eb2a67cb95 extruder: Support SYNC_STEPPER_TO_EXTRUDER on extruder objects
Refactor the extruder_stepper support so that it uses the
ExtruderStepper class defined in extruder.py.

Support the SYNC_STEPPER_TO_EXTRUDER command on steppers defined in
either extruder_stepper or extruder config sections.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-01-16 19:01:15 -05:00
Kevin O'Connor ffbd2698fe extruder: Separate extruder stepper tracking to new ExtruderStepper class
Move the stepper handling (including pressure advance handling) to a
new class.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-01-16 19:01:15 -05:00
Kevin O'Connor 29724a7411 extruder: Don't store pressure_advance value in trapq moves
Store the pressure_advance value in "struct extruder_stepper" instead
of in the trapq's "struct move".  This makes it possible for multiple
stepper motors to have different pressure advance values while still
using the same trapq.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-01-16 19:01:15 -05:00
Kevin O'Connor 34a1ce4837 tmc2130: Rework current selection to prefer vsense=1
It is preferable to program the tmc drivers with an irun (or cs)
setting near 31, as otherwise the driver may have reduced microstep
precision.  It was possible for the driver to be programmed with
irun=16 or irun=17 when it could have been configured with irun=31
with vsense=1 instead.  This would occur on tmc2130/tmc2208/tmc2209
drivers for values around 0.900 to 1.000 amps (when using a typical
sense_resistor settings of 0.110 Ohms).

Change the code to prefer using vsense=1 to avoid this issue.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-01-16 19:00:00 -05:00
Filip Trplan 89b4fecac4
config: Correct Pin for the CR-6 SE 2021 Example Config (#5142)
The fan pin PA0 is not correct for the 2021 revision of the CR-6 SE using the
4.5.3 revision of the Creality board. Changed the pin to PB15 in order to
get it working

Signed-off-by: Filip Trplan <filip@trplan.si>
2022-01-16 14:22:44 -05:00
individ-divided 538f09a2da
pause_resume: Do not clobber default state name by accident (#5156)
Previously accidentally used 'default' state name instead of the
stated one ('PAUSE_STATE'). This might collide with user usage of the
SAVE_GCODE_STATE macro.

Signed-off-by: David Grundberg <individ@acc.umu.se>
2022-01-16 13:00:24 -05:00
Tim Abraham babb067b60
neopixel: Update neopixel.py to add BRG color order (#5110)
Add BRG color option.
Document BRG color option.

Signed-off-by: Timothy Abraham <Timothyabe93@gmail.com>
2022-01-12 12:18:08 -05:00
Lasse Dalegaard 090fcf928f rp2040: implement I2C
This implements I2C for the rp2040 target. All output groupings of both
I2C blocks are available for use.

Signed-off-by: Lasse Dalegaard <dalegaard@gmail.com>
2022-01-12 11:44:31 -05:00
maze 6e6ad7b520
config: Update generic-mellow-super-infinty-hv.cfg (#4876)
TMC2130/5160 can make use of `spi3`, which is operated on the software SPI pins in the current configuration. The supplied defaults for software SPI do not currently work.

Heater0 pin was marked incorrectly, should be `PB0`

Signed-Off-By: Wijnand Modderman-Lenstra <maze@maze.io>
2022-01-09 21:44:40 -05:00
Paul McGowan de366ee854
docs: Docs comma culture (#4822)
Many non-English speaking countries use a comma as a decimal separator for printed numbers. This can create some confusion in documentation and config files when not surrounded by contextual clues like parenthesis.  Improve documentation by adding spaces to coordinates.

Signed-off-by: Paul McGowan <mental450@gmail.com>
2022-01-09 21:13:53 -05:00
Kevin O'Connor 4c8d24ae03 stm32: Update Kconfig as CANBUS isn't available on stm32f401
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-01-07 22:17:26 -05:00
Lasse Dalegaard 7c0559c6e6 rp2040: add make flash support
This adds `make flash` support for the rp2040 target. Flashing is
performed using a custom `rp2040_flash` tool that uses the PICOBOOT
protocol. Root is not required.

The user specifies the serial device of the rp2040 they wish to flash as
the device. This device is reset into bootsel mode and `rp2040_flash`
is invoked on the original USB device path.

If the device is already in bootloader mode, the user can specify
'first' as `FLASH_DEVICE` which will simply invoke `rp2040_flash` with
no bus/address options.

Signed-off-by: Lasse Dalegaard <dalegaard@gmail.com>
2022-01-06 17:32:54 -05:00
Kevin O'Connor 8a3727ef74 docs: Note some BL-Touch clones do not support touch_mode in BLTouch.md
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2022-01-03 22:05:38 -05:00
Kevin O'Connor 608cd38de5 docs: Upgrade to mkdocs-material v8.1.3
This version seems to fix an error in text highlighting during search.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-12-31 11:22:44 -05:00
Kevin O'Connor 7e4dff3b37 docs: Remove mkdocs-section-index from mkdocs-requirements.txt
Commit bd0185cf removed the section-index plugin.  Remove it from the
build requirements as well.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-12-31 11:22:44 -05:00
Stephen Hurd f8afe49a2f
toolhead: Fix toolhead stop on SET_VELOCITY_LIMIT (#5053)
This fixes issue #5050

Signed-off-by: Stephen Hurd <deuce@synchro.net>
2021-12-30 18:56:24 -05:00
Dmitry Butyugin 309b8e030f scripts: Migrated shaper calibration scripts to Python3
Also updated instructions to install python3-numpy and
python3-matplotlib Python packages.

Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
2021-12-30 18:14:53 -05:00
Kevin O'Connor 8b6753d68f stm32: Unify enable_pclock() code
Unify the handling of the enable_pclock() and is_enabled_pclock() code
across all stm32 chips.  All chips will now perform a peripheral reset
on enable_pclock() (this is a change for stm32f0 and stm32h7).  The
enable_pclock() code will now also disable irqs during the enable.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-12-30 12:18:05 -05:00
adelyser 9bdd61758e
stm32: Fix the GPIO register for stm32h7 (#5077)
Signed-off-by: Aaron DeLyser <bluwolf@gmail.com>
2021-12-29 18:01:28 -05:00
Yifei Ding 98af5dffe6
docs: Improve filament width sensor documentation (#5058)
Add Filament Width Sensor to G-Codes.md

Remove Redundant Filament Width Sensor Entries

Remove Duplicate Status Reference In Hall Filament Width Sensor

Fix Indentation For Filament Width Sensors

Signed-off-by: Yifei Ding<yifeiding@protonmail.com>
2021-12-27 12:41:31 -05:00
Kevin O'Connor 634ae08df6 config: Minor updates to generic-bigtreetech-skr-pico-v1.0.cfg
Small wording change and add to printer test cases.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-12-27 12:32:12 -05:00
BigTreeTech aa2ede4a8c
config: Add BigTreeTech SKR Pico V1.0 board (#5022)
Signed-off-by: Alan.Ma from BigTreeTech <tech@biqu3d.com>
2021-12-27 12:28:21 -05:00
Yifei Ding 4d3198d44d docs: Clarify the Thickness of Paper
Signed-off-by: Yifei Ding <yifeiding@protonmail.com>
2021-12-27 12:24:58 -05:00
Kevin O'Connor 0db696b0e9 docs: Fix hybrid_corexy typo in Config_Reference.md
Reported by @controlflow.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-12-27 12:21:33 -05:00
Kevin O'Connor 8090d365f6 docs: Add stm32g0b1 to benchmarks
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-12-27 10:47:52 -05:00