99591dc20c
Filter endstops state at all times ( #11066 )
2018-06-21 20:14:16 -05:00
a215725df6
Fix stepper pulse timing
...
Always honor minimum period on stepper pulse generation, and fix timing calculations
Signed-off-by: etagle <ejtagle@hotmail.com >
2018-06-12 21:34:24 -05:00
0d79128c8d
Localize stepper-specific defines
2018-06-12 21:16:54 -05:00
4dbec774b5
HAL_*_TIMER_RATE => *_TIMER_RATE
2018-06-12 16:39:12 -05:00
6f14bcaa3e
Add MAXIMUM_STEPPER_RATE, enforce in multi-stepping
...
The timing value should be properly set for ALL boards. The compiler will check and set maximum step rate calculations based on those values.
2018-06-10 16:02:47 -05:00
39a7e7720d
Adaptive multiaxis step smoothing
...
- Stepper bugs fixed
- Support MIXING_EXTRUDER with Linear Advance
- Miscellaneous cleanup
2018-06-10 16:02:47 -05:00
3701869e6c
Add HAL_timer_start for AVR, use stepper timer to time pulses
2018-06-09 22:30:13 -05:00
ad8d3150aa
Cleanup for dual endstops homing
2018-06-03 00:34:29 -05:00
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
2018-06-01 19:02:22 -05:00
4299e5dc8b
Modify E-stepping macros for use in LINEAR_ADVANCE ( #10885 )
2018-05-28 19:34:08 -05:00
0ca9db7051
Correct HOTENDS for SWITCHING_EXTRUDER
2018-05-27 23:22:48 -05:00
7b9f0302d4
Fix Bresenham rounding errors, add link to article ( #10871 )
2018-05-27 01:49:59 -05:00
2566342979
Adjust some commentary
2018-05-27 00:10:25 -05:00
6775a16c97
Fix switching extruder stepping with LA
2018-05-26 19:07:01 -05:00
aaaf09bda2
BEZIER_JERK_CONTROL => S_CURVE_ACCELERATION
2018-05-26 18:33:51 -05:00
01d37e00af
Fix up stepper ISR with linear advance timing ( #10853 )
...
Co-Authored-By: ejtagle <ejtagle@hotmail.com >
2018-05-26 01:00:13 -05:00
7261f48872
Fix reset of endstops and move state
2018-05-24 19:33:36 -05:00
50fa8e01c1
Minor optimization of axis_did_move bits
2018-05-24 19:08:07 -05:00
f28e366b77
Followup for core endstops
2018-05-24 03:02:57 -05:00
9644d56b42
Patches for core motion tests
2018-05-24 00:49:01 -05:00
3e3789da85
Regression: Endstops Core compatibility ( #10823 )
...
Co-Authored-By: ejtagle <ejtagle@hotmail.com >
2018-05-23 03:45:25 -05:00
4b2f6e3b2b
[2.0.x] Add endstop noise filter ( #10796 )
2018-05-21 15:51:38 -05:00
435ecb6b67
Followup to stepper/planner refactor
2018-05-20 23:13:38 -05:00
569df3fc0c
Fix interrupt-based endstop detection
...
- Also implemented real endstop reading on interrupt.
2018-05-20 07:10:24 -05:00
a11eb50a3e
Refactor and optimize Stepper/Planner
...
Better encapsulation and considerably reduce stepper jitter
2018-05-20 06:23:58 -05:00
7dc03ce721
Simplified fix for babystep pulse width
...
Alternative to the apparently superfluous double delay
2018-05-19 21:00:08 -05:00
65270d6a96
Fix LIN_ADVANCE + SWITCHING_EXTRUDER
...
Followup to #10656
2018-05-19 18:32:00 -05:00
9ad42d6617
add delay between pulse edges ( #10778 )
2018-05-19 17:12:16 -05:00
ba4c32eec5
Followup to _AXIS patch
2018-05-13 10:43:35 -05:00
d9154ebdf6
Followup to math patch
2018-05-13 09:30:27 -05:00
883b0c9880
Convert custom maths to inlines ( #10728 )
2018-05-13 08:10:08 -05:00
08e36e264e
Apply _AXIS macro
2018-05-13 06:51:01 -05:00
8f8c6a9bc4
Move get_axis_position_mm to Planner ( #10718 )
2018-05-12 09:59:11 -05:00
a1062eec5b
Better handling of DELAY_NS and DELAY_US ( #10716 )
...
Co-Authored-By: ejtagle <ejtagle@hotmail.com >
2018-05-12 08:34:04 -05:00
3614e6ce0f
Fix Switching Extruder with Linear Advance
2018-05-12 02:26:14 -05:00
306f0f2135
Move Stepper::synchronize to Planner ( #10713 )
...
Co-Authored-By: ejtagle <ejtagle@hotmail.com >
2018-05-12 01:38:02 -05:00
722aba77f3
Fix LIN_ADVANCE + SWITCHING_EXTRUDER stepper directions ( #10656 )
2018-05-09 14:36:09 -05:00
0436e16fb2
Apply shorthand Assembler macros
2018-05-08 10:08:54 -05:00
af1950a63e
Improve sync of stepper positions
2018-05-06 01:24:14 -05:00
0c23792344
Apply int32_t to stepper
2018-05-05 18:21:03 -05:00
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.
2018-04-23 22:05:07 -05:00
36b97bde9f
clear_block_buffer, kill_current_block in quick_stop
2018-04-13 22:04:53 -05:00
57a899a412
[2.0.x] 6th-order jerk-controlled motion planning in real-time for AVR ( #10373 )
2018-04-11 18:13:42 -05:00
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!)
2018-04-07 21:03:28 -05:00
7d8a46519f
Output ABC for delta stepper counts
2018-03-31 20:13:32 -05:00
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
2018-03-21 19:30:06 -05:00
48d7036874
Consolidate smart stepper driver initialization
2018-03-19 22:05:16 -05:00
eaefc1e410
Add CorePQ support for BABYSTEPPING ( #10155 )
2018-03-19 02:51:40 -05:00
51bf3c9503
Fix E direction for MK2_MULTIPLEXER with LIN_ADVANCE
2018-03-14 07:56:18 -05:00
e7570f3195
Improve TMC config organization, naming
2018-03-14 00:18:41 -05:00