Commit Graph

7783 Commits (86818c9a89720922c2e6f30c0d4779b3d191f471)

Author SHA1 Message Date
Scott Lahteine 6686d937fb Always report position on config load/reset
Scott Lahteine 117fc872a7 Update current position in M852
Scott Lahteine 7d2e850577 Have M420 report a changed position
Scott Lahteine 03ba79f144 Sync and report changed position
Scott Lahteine 5cf6a062e3 Reset timer count before first block step
Scott Lahteine 6149b82119 Allow setting current timer counter
Scott Lahteine 82ef6b5242 Add an option to specify "pulse" timer
Scott Lahteine b8bc965414 General cleanup HAL timers
Scott Lahteine 69d49a2438 Shorter segments may be better
Scott Lahteine d576f5408e Add MiniRAMBo 1.0a board
Scott Lahteine c40cb52342 Use MB() for Megatronics 3.1
Scott Lahteine 4fa65a5c25 TCNT0 => HAL_timer_get_current_count
Fix 
AnHardt b3daf6b5db [2.0.x] better reverse pass ()
* repair reverse_pass()

And make it readeble.
This was broken a long time ago.
Not competely unfunctional but far from optimal.

* Minor speedup when calling calculate_trapezoid_for_block

2 float / to 1 foat / and 2 float *

* Various style changes
Roxy-3D f58eb391aa [2.0.0] Better off mesh behavior for UBL ()
* Better off mesh behaviour for UBL

* Suggested ubl.h changes
Jonathan Barchi cffd052fee [2.0.x] Fix for ()
* Nozzle.cpp: replace incorrect M_2_PI (2/pi) with 2.0 * M_PI

* Use RADIANS(360) instead of 2 * M_PI
Bob-the-Kuhn 65d0f32f82 divide only when required
Scott Lahteine 728acf521c Followup to
Scott Lahteine 85c6ffbe0d Discard all "continued" blocks on interrupted move
Scott Lahteine 4e891e9fb7 Followup to
Scott Lahteine de3d3b9cb1 Put FORCE_INLINE before static
Scott Lahteine 43ea265b78
Merge pull request from MateuszKrawczuk/patch-3
Update TEMP_BED_PIN in MIGHTYBOARD_REVE
Scott Lahteine ae663a4198 PROBE_DOUBLE_TOUCH => MULTIPLE_PROBING
Scott Lahteine d7800e7975 Apply MULTIPLE_PROBING to example configs
Scott Lahteine 542efda7db
Merge pull request from thinkyhead/bf2_replace_jerk_code
[2.0.x] Improved Core-compatible jerk code
Scott Lahteine 3cd7659924 Improved Core-compatible jerk code
GMagician 99fcf60977 [2.x] addressing
Removed missing include file
Scott Lahteine 81c0a918af feed_factor => inverse_secs
Scott Lahteine f206b81cf7 Sanity check skew+UBL
Scott Lahteine 9898b96992 No lcd_map_control flag in quick_stop
Scott Lahteine 840289e7cc Use block cleaning instead of split flag
Scott Lahteine 90cf6a06be Simplify G26 user_canceled
Scott Lahteine cdfabbc507 Shorten error text in G29
Scott Lahteine c846388a65 Standardize LCD interface code for UBL a little
Scott Lahteine 2fde60da12 Changes for parity with 1.1.x
Scott Lahteine 6040d4080e Cleanup stepper ISR. Allow cleaning for endstops.
Scott Lahteine a4e1d83599 Fix M503 S parameter
Scott Lahteine a3b098b4be Whitespace clean
AnHardt a993c5227d Don't split first_move while homing or probing
While homing or probing it might be bad if the stop/trobe triggers during the first part and the second is still in the buffer.
Mateusz Krawczuk 5320906b0b
Update TEMP_BED_PIN in MIGHTYBOARD_REVE
Pin K7 number in fastio1280.h is 69, but it's also ADC15 pin. 
To get correct value from ADC reading it should be set as 15.
Scott Lahteine aeb5c623c1 Show "Level Bed Corners" with UBL too
Addressing 
Scott Lahteine 5fbb2f121e Remove skew warning that could crash the planner
Richard Wackerbarth c1184552ac Change K1 to required option PID_K1
revilor 9e3fbcf35c fix for ()
* fix for 

* Update G28.cpp
Scott Lahteine d8b444c144 Cleanup constextpr in planner.cpp
Scott Lahteine a2372cfab5 Fix SKEW_CORRECTION without leveling
Scott Lahteine 4d3c3d0b73 Some ST7920 parity with 1.1.x
Possibly more should be brought over? Discussion at 
Scott Lahteine 3748c28924 Fix MBL G29 without LCD
Addressing https://github.com/MarlinFirmware/Marlin/pull/8575#discussion_r154536617
Scott Lahteine 772298257b Creality pins spacing, MINIPANEL CS pin
Scott Lahteine b27bc67271 Set initial endstops state
Scott Lahteine b6ba32ce75 Support for RAMPS Plus (3DYMY)
Scott Lahteine 53694ebaa1 Folllwup to planner splitting
Scott Lahteine 37fff608b0
Merge pull request from fiveangle/bf2_usbcon_xonxoff
[2.0.x] SERIAL_XON_XOFF not supported on USB-native AVR devices
Scott Lahteine 4b612f590c Split first move to planner for better chaining
Unknown 91b63f6d69 SERIAL_XON_XOFF not supported on USB-native AVR devices
User could enable SERIAL_XON_XOFF on USB-native devices and it would not be enabled without warning, but M115 would report the capability as available.
Bob-the-Kuhn 57fac33a74 add explanations
1) add explanations as to why software SPIs are selected

2) remove unused flag/option
Bob-the-Kuhn bb23286383 add README & modify spi_pins.h
still trying to fix file name
Scott Lahteine dd8febca1a Revert "Merge pull request from thinkyhead/bf2_planner_split_first"
This reverts commit 824980e70e, reversing
changes made to aa7efb96bf.
Bob-the-Kuhn fb44f8e50f
Merge pull request from hg42/bugfix-2.0.x
[2.0.x][LPC1768][FIX] NUM_DIGITAL_PINS was negative, fixes PWM, arduino io functions, M42, M43, M226, probably also Servo, some LCD, soft spi, SoftwareSerial, ... may be others
Bob-the-Kuhn 4c5356f77a
Merge pull request from hg42/implement-LPC1768-GET_TIMER
[2.0.x][LPC1768][fix] Implement GET_TIMER and other GET_xxx, fixes PWM
Harald Gutsche f5b4e1ef4f as a workaround enable PWM for any pin, see PR
Scott Lahteine 6e944a413c
Merge pull request from benlye/patch-1
[2.0.x] Fix M49 so that it does not hang the terminal console
Scott Lahteine 967522b95e
Merge pull request from dot-bob/Duplicator_6-2.0.x
[2.0.x] Example configurations for Wanhao Duplicator 6
Scott Lahteine f4b16a3bac
Update M49.cpp
Scott Lahteine f9327534f8
Merge pull request from fiveangle/bf2_report_xonxoff
[2.0.x] Report SERIAL_XON_XOFF in M115
Scott Lahteine da9f140829
Merge pull request from thinkyhead/bf2_ubl_uses_LSL
[2.0.x] Use custom segment length for UBL Cartesian
Scott Lahteine 3a97de52ef Split first move to planner for better chaining
Address , 
Scott Lahteine 24437de591 Use custom segment length for UBL Cartesian
Unknown 4c5ffd2349 [2.0.x] Report SERIAL_XON_XOFF in M115
-Report SERIAL_XON_XOFF in Extended Capabilites M115 report for hosts
-Remove outdated 256 size limitation from comments on RX_BUFFER_SIZE defines
-Update error message conditions
Scott Lahteine aa7efb96bf Bring configurations up to date
Scott Lahteine 63a91cd37a Fix a homing comment
Scott Lahteine 8056120195 Rename inverse_mm_s => inverse_secs
Scott Lahteine 23557f8e77 Remove obsolete de_float
Jonathan Barchi 05f8e98c4a Fix for issue - mismatch between number of stored and loaded dummy items on non-delta machines. ()
Roxy-3D 48fb4e0932
Get Bi-Linear to work with G26
More corrections to make that happen...
Roxy-3D 0850b38b45
Get Bi-Linear working with G26
G26 uses logic that looks like:
```
ex = _GET_MESH_X(i + 1) - (SIZE_OF_INTERSECTION_CIRCLES - (SIZE_OF_CROSSHAIRS));
```
The Bi-Linear macros need parenthesis to work correctly.
Scott Lahteine 000b3b3117 Comment/cleanup of motion code
Scott Lahteine 046a1ad331
Merge pull request from tcm0116/2.0.x-G33
[2.0.x] Fix missing return values in G33_auto_tune
Thomas Moore b35c3b5eb8 Fix missing return values in G33_auto_tune
Scott Lahteine 45c2388a58 Apply const to thermal_runaway_protection args
Scott Lahteine 0154e3480c New feature: BED_SKEW_CORRECTION
Scott Lahteine 082ab8fcab Add SKEW_CORRECTION to example configs
Unknown d1f11e9c10 fix missing GET_TIMER (used by PWM for Ex_AUTO_FAN)
Harald Gutsche dd1b503f64 fix NUM_DIGITAL_PINS being negative for more than 127 digital pins
dot-bob bd45d0363d Add default configurations for the Wanhao Duplicator 6.
Scott Lahteine 91fb6231b2 Fix EEPROM V45 header, layout
Roxy-3D 94e6b2976e
Restore correct G26 values for gMax 1.5+ printer
Scott Lahteine dd3ce40826 Drop Planner::position_float, use int types
Scott Lahteine ec6ca37ed3 Fix (un)apply_leveling fade bug
Scott Lahteine a52fec6ac4 Planner class parity with 1.1.x
Ben Lye 1f3ad461bc
Update M49.cpp
Fix M49 so that it does not hang the terminal console.
Scott Lahteine e37dd64548 Apply LEDColor, language fixes
Scott Lahteine 8f90642eea LED_CONTROL_MENU config changes
Tannoo cf0f78336b New Feature: LED_CONTROL_MENU
Scott Lahteine 23e45fa3c4 Apply const to some planner vars
Scott Lahteine 7c61bcb058 Apply SEGMENT_LEVELED_MOVES to example configs
Scott Lahteine ef2531558c Add an option to segment leveled moves
Scott Lahteine 285b868e9b Tweak planner code style
Scott Lahteine 1f2acc33bc Tweaks for check_axes_activity
Vitaliy Sapyanov 7f88334aa3 Done cleanup and removed duplicates in pins_RuRAMPS4D.h ()
Remove duplicates, with followup fixes
Scott Lahteine a8aa43ce2d
Merge pull request from AnHardt/2_Fix_WDTO_during_long_DELTA_moves
[2.0.x] Fix WDTO during long delta moves
Scott Lahteine 4793c34c53 Fix M290 boolval bug
Fix 
Scott Lahteine 16baa48699 Fix
Fan speed code fell into a curly brace
AnHardt 02aa93a6ad Fix Watchdog time out during long lasting DELTA moves
During long lasting moves of a delta machine neither the temperatures are maintained nor buttons checked nor ... .
The fix is to call 'manage_heater()' and 'idle()' every now and then in the loop where the move is segmented. 
The code is abot the same as in G2_G3 wher we had the same problem with too large circles lasting too long.
Fixing 
Scott Lahteine fadf9eb2d7 Simplify midpos calculation
Scott Lahteine 0880031e8e Satisfy M702 dependencies
Scott Lahteine 0786b61ce7 Followup to
Scott Lahteine 276271e72f Make MBL work more like PROBE_MANUALLY
Scott Lahteine 94cb412e45 Allow override of probe bounds
Scott Lahteine c8718aa111 Spacing, macros in LPC1768_PWM
Scott Lahteine a67cf78c6b Clean up whitespace, spacing
Scott Lahteine f0dd4e3fa0 Bootscreen parity with 1.1.x
Scott Lahteine b634bfe1b1 Tweak to readDir code
Scott Lahteine 7be4857ab9 Tweak BLOCK_BUFFER_SIZE description
Bob-the-Kuhn 7d8b66e207
Merge pull request from Bob-the-Kuhn/Sbase-PWM
[2.0.x] MKS Sbase - add servo pin definitions and add directly controlled PWM
Bob-the-Kuhn 59b32c25b5 MKS Sbase changes
Scott Lahteine f90c075d1f SD Menu patches
Scott Lahteine 9b64be0bc5 Fixes for leveling sub-menus
Scott Lahteine 25674da90c Tweaks to do_blocking_move
Scott Lahteine 22b897e77d Show M211 output with workspace offset
Scott Lahteine d06e29846d Loosen HAS_BED_PROBE definition
Roxy-3D e48fcad615 change G26 and G29 bit function names to avoid HAL collision
Scott Lahteine 41ec449960 Fix G26 error return
Scott Lahteine 9badf5dc0d Fix Micromake C1 config
Scott Lahteine 7576ad7fc2
Merge pull request from tcm0116/2.0.x-cleanup
[2.0.x] Fix for  and other cleanup
Scott Lahteine 27c5692b13 Syntax tweaks
Scott Lahteine d18d40e1d6 M290 report on change, P0 to leave Probe Z Offset alone
LVD-AC 65f365333f [2.0.x] G33 probe error handling
Bob-the-Kuhn 8c69adba8b
Merge pull request from Bob-the-Kuhn/2.0.x-U8Glib-follow-up
[2.0.X] U8Glib follow up
Scott Lahteine be00e421a7 Patch up M290, M851
Bob-the-Kuhn fc40d56131 fixed error, updated defaults, added notes
Travis fix - only allow ultralcd_st7920_u8glib_rrd_AVR.cpp to compile when ST7920 selected
Roxy-3D d29cb646e3
Fix erroneous reference to temperature in time calculations
Travis is having problems at:  https://github.com/MarlinFirmware/Marlin/pull/8560   

So...   doing a direct commit to get things correct.   Bugfix_v1.1.x does not have this bug.  Nothing needs to be done to that branch.
Thomas Moore 7bb1721f35 Fix _BV already defined warnings for Teensy
Thomas Moore 5f9592a523 Cleanup narrowing warning in pin_is_protected
Thomas Moore 34eaaab5fb Fix _BV already defined warnings
Thomas Moore 2ea779e560 Allow bed probe sanity checks to run
Scott Lahteine d24b1190bd Don't use Z_MIN_PROBE_ENDSTOP on DELTA
Scott Lahteine e34c6827ea Init MIXING virtual tools as switching
Scott Lahteine a9ecb975b2 Apply LINEAR_UNIT to M503 output for M200
Scott Lahteine d95ee0f003
Merge pull request from revilor/bugfix-2.0.x
MK2_MULTIPLEXER does not require E2/E3 stepper pins
Scott Lahteine 80ada58818 One fewer function call in probe_pt
oliver 92a0dc552a MK2_MULTIPLEXER does not require E2/E3 stepper pins
Scott Lahteine b49acce035 Tweaks for lcd_external_control
Scott Lahteine 1ef1052ae1 Phatter arrows for Z offset overlay
Scott Lahteine 5926c9c97b Followup for MESH_EDIT_GFX_OVERLAY
Scott Lahteine ab03a31cc9 Patch G0/G1 for NANODLP_Z_SYNC
Scott Lahteine a766dfb3b1
Merge pull request from thinkyhead/bf2_nanodlp_z_move_sync
[2.0.x] Implement NANODLP_Z_SYNC for 2.0.x
Scott Lahteine 01e207213f Fix MK2_MULTIPLEXER stepper indirection
Roxy-3D ec04cf27d3
Fix the G26 out of scope identifiers in the v2.0.0 branch ()
These changes may need to be warmed over.  I tried to fix things with
the least amount of disruption.   I just wanted to get the bugfix_v2.0.0
branch working for people again.
Scott Lahteine dc82babe8e Implement NANODLP_Z_SYNC for 2.0.x
Scott Lahteine c6b0c104bb Adapt G26 to work for all meshes
Scott Lahteine 5ce7f23afa Config option G26_MESH_VALIDATION for all meshes
Scott Lahteine c19eb33408 Move G26 to gcode sub-folder
Scott Lahteine a03f93bab4 Fix fan kickstart
Scott Lahteine 9e3c41f9e8 Tweak fan kickstart / speed code
GMagician 118ac61e59 [2.0.x] Tool change bad behaviour fix
Previous fix did not work as expected when axeis not homed. It raise Z but never return to original position
Scott Lahteine c35d27f77c
Merge pull request from tcm0116/2.0.x-BIQU_BQ111-A4
[2.0.x] Add BIQU BQ111-A4 board
Scott Lahteine 1685cd193b Tweak char_mode init
Scott Lahteine 9406c87a97 Fix up LCD init / charset
Thomas Moore fa577392b2 Add BIQU BQ111-A4 board
Scott Lahteine c2fc78c3a8 #ifndef => #if !PIN_EXISTS
Scott Lahteine c613a1ed38 Fix indentation, stepper.h dependency, etc.
teemuatlut f011a32771 Board definitions for Ultratronics Pro v1.0
Bob-the-Kuhn 9dad534f02 fixed
Scott Lahteine 4371345cbe
Don't re-init graphical LCD after boot screen
Followup to 13a3fb1acc
Scott Lahteine 56c02b7f59 Shift register buttons question
Can LCD shift registers keep up with faster MCUs?
Scott Lahteine 3994d3b935 General cosmetic LCD
Scott Lahteine 617993d0ea Patch for !!TEST (was _BV once?)
Scott Lahteine 3269d8dd62 Tweak M42 var
Mateusz Krawczuk bb1a6eea88
Remove pin count check for MIGTHYBOARD_REVE
Remove assert and unused code since it is implemented in pinsDebug_plus_70.h
Scott Lahteine 1ce0fb336b Patch Max7219_LED_Set input args
GMagician a61127a421 [2.0.x] tool change bad behaviours
This will solve 2 issues on tool change.
1) when no home is done ("no_move" is set) tool change should never move X & Y because... I don't know where I am...only Z should be adjusted to avoid bed collision if other nozzle is lower than current.
Since no move no bed level matrix should be applied
2) When SWITCHING_NOZZLE is enabled and system is homed there are two movements to go to destination, but first can move Z to older position and then crash on the bed
Vitaliy Sapyanov e2724c68ab Update pins_RURAMPS4D.h
Add and bugfix pins
Scott Lahteine 9770062309
Merge pull request from thinkyhead/bf2_32bit_M42
[2.0.x] Updates to Anet A8 configurations
Scott Lahteine 3066655727 Try port*100+pin, fix config dependency
Scott Lahteine ba8bc7ea80 Cosmetic tweaks
Scott Lahteine f409147116 Fix P2_04, P2_05
Bob-the-Kuhn a28ccabe2a M42 P1.20 fix
Unknown 33912fa7e8 Update Temperature::setPwmFrequency prototype to match source
Introduced with 
Scott Lahteine b9327a4d16 Misc. general cleanup
Scott Lahteine 8836623e0f Fix `sq`/`min`/`max` macros after platform headers
Scott Lahteine fe4f009fdd 32-bit unless…
Scott Lahteine 25af9decfe Remove enum.h include of MarlinConfig.h
Scott Lahteine 1d4571b88d Dependency adjustments
Scott Lahteine 550f1025f0 Try using <Arduino.h> everywhere
Scott Lahteine c0000a0cdc Move servo code to modules/servo.*
Scott Lahteine 81bc428b48 Don't compile custom u8g without DOGLCD
Bob-the-Kuhn c14000775b PWM fixes, slow down fan update
include LPC1768 syntax for M42

couple more pin_t changes

consistency

change M42 to R, P format

Revert "change M42 to R, P format"

This reverts commit 01f12f579ec9ccc1bb9126e68d2c86449e9b7edf.
Scott Lahteine 60adc6ff02 Display filwidth ratio in terms of E mm
Scott Lahteine 6e533748eb Fixes
Scott Lahteine 485abb023b
Merge pull request from thinkyhead/bf2_wednesday_tweaks
[2.0] No retroactive adjustment with M851 Z
Scott Lahteine 3bba7d60f3 No retroactive changes with M851 Z
If using babystep to adjust the Z probe offset, the axis will move and the mesh will be updated at the same time, causing a doubling of the Z offset over the rest of the print.

To correct for this, the current Z position would need to be modified in the opposite direction, canceling out the additional Z offset added to the mesh. This would be confusing to users, and moreover it would not be accurate without also taking the current Z fade level and current Z height into account.

It might make sense to change the mesh in the case where no babystepping is taking place, but this could be considered an undesirable side-effect of changing the `zprobe_zoffset`.

One way to remedy this would be to return to storing the mesh with `zprobe_zoffset` included, then subtracting `zprobe_zoffset` from the returned Z value. Thus, a babystep moving the Z axis up 1mm would subtract 1 from `zprobe_zoffset` while adding 1 to all mesh Z values.

Without including the `zprobe_zoffset` in the `z_values` there is no safe way to alter the mesh in conjunction with babystepping, although it's fine without it.
Scott Lahteine 32512332df Apply some formatting
Scott Lahteine 7dacc999b9 Remove obsolete show_bootscreen var
Roxy-3D 9729528d13
Update UBL's Delta Probable locations
This is a non-intuitive change.   @oldmcg says in this post https://github.com/MarlinFirmware/Marlin/issues/7572#issuecomment-340641207 that using DELTA_PRINTABLE_RADIUS is better than DELTA_PROBABLE_RADIUS for setting the probe limits.   This is because the automatic probe code checks all locations for being reachable by the probe prior to doing the probe.
Scott Lahteine d48cb6bf41 Apply coding standards to Max7219
Scott Lahteine bd8bcf06e7 Updates to Anet A8 configurations
Based on 
Bob-the-Kuhn 7eea000f4b E0 auto fan fixes
Scott Lahteine b2dda096fe Fix FILAMENT_LCD_DISPLAY for disabled state
Scott Lahteine 1e8afb66b7 Fix a planner comment
Scott Lahteine 50f09cc029 Miscellaneous cleanup