etagle
39a7e7720d
Adaptive multiaxis step smoothing
- Stepper bugs fixed
- Support MIXING_EXTRUDER with Linear Advance
- Miscellaneous cleanup
vor 6 Jahren
Scott Lahteine
3701869e6c
Add HAL_timer_start for AVR, use stepper timer to time pulses
vor 6 Jahren
Scott Lahteine
ad8d3150aa
Cleanup for dual endstops homing
vor 6 Jahren
Eduardo José Tagle
d3c02410a8
[2.0.x] Small assorted collection of fixes and improvements (#10911 )
* Misc fixes and improvements
- Get rid of most critical sections on the Serial port drivers for AVR and DUE. Proper usage of FIFOs should allow interrupts to stay enabled without harm to queuing and dequeuing.
Also, with 8-bit indices (for AVR) and up to 32-bit indices (for ARM), there is no need to protect reads and writes to those indices.
- Simplify the XON/XOFF logic quite a bit. Much cleaner now (both for AVR and ARM)
- Prevent a race condition (edge case) that could happen when estimating the proper value for the stepper timer (by reading it) and writing the calculated value for the time to the next ISR by disabling interrupts in those critical and small sections of the code - The problem could lead to lost steps.
- Fix dual endstops not properly homing bug (maybe).
* Set position immediately when possible
vor 6 Jahren
Scott Lahteine
4299e5dc8b
Modify E-stepping macros for use in LINEAR_ADVANCE (#10885 )
vor 6 Jahren
Scott Lahteine
0ca9db7051
Correct HOTENDS for SWITCHING_EXTRUDER
vor 6 Jahren
Eduardo José Tagle
7b9f0302d4
Fix Bresenham rounding errors, add link to article (#10871 )
vor 6 Jahren
Scott Lahteine
2566342979
Adjust some commentary
vor 6 Jahren
Scott Lahteine
6775a16c97
Fix switching extruder stepping with LA
vor 6 Jahren
Scott Lahteine
aaaf09bda2
BEZIER_JERK_CONTROL => S_CURVE_ACCELERATION
vor 6 Jahren
Scott Lahteine
01d37e00af
Fix up stepper ISR with linear advance timing (#10853 )
Co-Authored-By: ejtagle <ejtagle@hotmail.com >
vor 6 Jahren
Scott Lahteine
7261f48872
Fix reset of endstops and move state
vor 6 Jahren
Scott Lahteine
50fa8e01c1
Minor optimization of axis_did_move bits
vor 6 Jahren
Scott Lahteine
f28e366b77
Followup for core endstops
vor 6 Jahren
Scott Lahteine
9644d56b42
Patches for core motion tests
vor 6 Jahren
Scott Lahteine
3e3789da85
Regression: Endstops Core compatibility (#10823 )
Co-Authored-By: ejtagle <ejtagle@hotmail.com >
vor 6 Jahren
Scott Lahteine
4b2f6e3b2b
[2.0.x] Add endstop noise filter (#10796 )
vor 6 Jahren
Scott Lahteine
435ecb6b67
Followup to stepper/planner refactor
vor 6 Jahren
etagle
569df3fc0c
Fix interrupt-based endstop detection
- Also implemented real endstop reading on interrupt.
vor 6 Jahren
etagle
a11eb50a3e
Refactor and optimize Stepper/Planner
Better encapsulation and considerably reduce stepper jitter
vor 6 Jahren
Scott Lahteine
7dc03ce721
Simplified fix for babystep pulse width
Alternative to the apparently superfluous double delay
vor 6 Jahren
Scott Lahteine
65270d6a96
Fix LIN_ADVANCE + SWITCHING_EXTRUDER
Followup to #10656
vor 6 Jahren
Bob Kuhn
9ad42d6617
add delay between pulse edges (#10778 )
vor 6 Jahren
Scott Lahteine
ba4c32eec5
Followup to _AXIS patch
vor 6 Jahren
Scott Lahteine
d9154ebdf6
Followup to math patch
vor 6 Jahren
Scott Lahteine
883b0c9880
Convert custom maths to inlines (#10728 )
vor 6 Jahren
Scott Lahteine
08e36e264e
Apply _AXIS macro
vor 6 Jahren
Scott Lahteine
8f8c6a9bc4
Move get_axis_position_mm to Planner (#10718 )
vor 6 Jahren
Scott Lahteine
a1062eec5b
Better handling of DELAY_NS and DELAY_US (#10716 )
Co-Authored-By: ejtagle <ejtagle@hotmail.com >
vor 6 Jahren
Scott Lahteine
3614e6ce0f
Fix Switching Extruder with Linear Advance
vor 6 Jahren
Scott Lahteine
306f0f2135
Move Stepper::synchronize to Planner (#10713 )
Co-Authored-By: ejtagle <ejtagle@hotmail.com >
vor 6 Jahren
Scott Lahteine
722aba77f3
Fix LIN_ADVANCE + SWITCHING_EXTRUDER stepper directions (#10656 )
vor 6 Jahren
Scott Lahteine
0436e16fb2
Apply shorthand Assembler macros
vor 6 Jahren
Scott Lahteine
af1950a63e
Improve sync of stepper positions
vor 6 Jahren
Scott Lahteine
0c23792344
Apply int32_t to stepper
vor 6 Jahren
Eduardo José Tagle
0c428a66d9
Proper AVR preemptive interrupt handling (#10496 )
Also simplify logic on all ARM-based interrupts. Now, it is REQUIRED to properly configure interrupt priority. USART should have highest priority, followed by Stepper, and then all others.
vor 6 Jahren
Scott Lahteine
36b97bde9f
clear_block_buffer, kill_current_block in quick_stop
vor 6 Jahren
Eduardo José Tagle
57a899a412
[2.0.x] 6th-order jerk-controlled motion planning in real-time for AVR (#10373 )
vor 6 Jahren
etagle
a29adde5c0
Implement BEZIER_JERK_CONTROL
Enable 6th-order jerk-controlled motion planning in real-time.
Only for 32bit MCUs. (AVR simply does not have enough processing power for this!)
vor 6 Jahren
Scott Lahteine
7d8a46519f
Output ABC for delta stepper counts
vor 6 Jahren
Scott Lahteine
1cb810ff1c
[2.0.x] Automatically reset stepper timeout (#10179 )
* Automatically reset stepper timeout in manage_inactivity
Any code that adds moves to the planner can skip resetting the stepper timeout. We can let `idle` / `manage_inactivity` reset the timer whenever it detects any moves in the planner.
* blocks_queued => has_blocks_queued
vor 6 Jahren
Scott Lahteine
48d7036874
Consolidate smart stepper driver initialization
vor 6 Jahren
Scott Lahteine
eaefc1e410
Add CorePQ support for BABYSTEPPING (#10155 )
vor 6 Jahren
Scott Lahteine
51bf3c9503
Fix E direction for MK2_MULTIPLEXER with LIN_ADVANCE
vor 6 Jahren
Scott Lahteine
e7570f3195
Improve TMC config organization, naming
vor 6 Jahren
Scott Lahteine
751785fc97
Followup to recent patches
- `M666` is static, not inline
- Disambiguate some stepper macros
vor 6 Jahren
Scott Lahteine
16a8edc5f0
Add more delay before pulse off in Linear Advance ISR
A capital idea from https://github.com/MarlinFirmware/Marlin/pull/9914#issuecomment -371614153
vor 6 Jahren
Scott Lahteine
98d48fc731
Followup to HAL_timer_restrain
Followup to #9985
vor 6 Jahren
Chris Pepper
a1a88ebabc
HAL function to ensure min stepper interrupt interval (#9985 )
vor 6 Jahren
Scott Lahteine
e5ec793f7e
Wrap stepper indirection macros
vor 6 Jahren