Scott Lahteine
ad8d3150aa
Cleanup for dual endstops homing
7 anni fa
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
7 anni fa
Scott Lahteine
2deff0d9b9
Fix/Improve junction deviation
- Respect axis max acceleration limits instead of forcing a fixed acceleration value.
- The `junction_unit_vec` ensures proper handling of entry and exit speeds even when the axes involved have different limits.
7 anni fa
Scott Lahteine
d259070980
Clean up trailing spaces from vim, etc.
7 anni fa
Scott Lahteine
b90f54b0fc
Improve probe logging
7 anni fa
Scott Lahteine
4299e5dc8b
Modify E-stepping macros for use in LINEAR_ADVANCE (#10885 )
7 anni fa
Scott Lahteine
8f14ef855d
More concise commentary in planner.cpp
7 anni fa
Scott Lahteine
6919e87656
Minor cleanup of multi-stepping logic
7 anni fa
Scott Lahteine
853a9056ac
Long thermistor tables need special consideration
7 anni fa
Scott Lahteine
a4f9c3373f
Tweak thermistor spacing
7 anni fa
Scott Lahteine
1ce97f1f6d
Faster (bisect) search in thermistor tables (#10883 )
7 anni fa
Scott Lahteine
0ca9db7051
Correct HOTENDS for SWITCHING_EXTRUDER
7 anni fa
Eduardo José Tagle
7b9f0302d4
Fix Bresenham rounding errors, add link to article (#10871 )
7 anni fa
Scott Lahteine
2566342979
Adjust some commentary
7 anni fa
Scott Lahteine
6775a16c97
Fix switching extruder stepping with LA
7 anni fa
Scott Lahteine
931ab4ec40
Rename Junction Deviation options
7 anni fa
Scott Lahteine
aaaf09bda2
BEZIER_JERK_CONTROL => S_CURVE_ACCELERATION
7 anni fa
Scott Lahteine
01d37e00af
Fix up stepper ISR with linear advance timing (#10853 )
Co-Authored-By: ejtagle <ejtagle@hotmail.com >
7 anni fa
Scott Lahteine
7261f48872
Fix reset of endstops and move state
7 anni fa
Scott Lahteine
50fa8e01c1
Minor optimization of axis_did_move bits
7 anni fa
Scott Lahteine
f28e366b77
Followup for core endstops
7 anni fa
Scott Lahteine
9644d56b42
Patches for core motion tests
7 anni fa
Scott Lahteine
3e3789da85
Regression: Endstops Core compatibility (#10823 )
Co-Authored-By: ejtagle <ejtagle@hotmail.com >
7 anni fa
Scott Lahteine
4b610b333e
Tweak G38 formatting
7 anni fa
Scott Lahteine
d2647c1f19
Fix G1 behaviour after tool unpark
Fix #10777 for 2.0.x
Co-Authored-By: Ante Vukorepa <o.orcinus@gmail.com >
7 anni fa
Scott Lahteine
0c3773d724
Cleanup in stepper_indirection.h
7 anni fa
Scott Lahteine
4b2f6e3b2b
[2.0.x] Add endstop noise filter (#10796 )
7 anni fa
Scott Lahteine
65a004564c
Stepper::set_position needed for some applications
7 anni fa
Scott Lahteine
435ecb6b67
Followup to stepper/planner refactor
7 anni fa
Bob Kuhn
d557c84a71
[2.0.x] Error for FAST_PWM_FAN with 32 bit CPU (#10798 )
7 anni fa
etagle
569df3fc0c
Fix interrupt-based endstop detection
- Also implemented real endstop reading on interrupt.
7 anni fa
etagle
a4af975873
Fix planner block optimization
- Fixed the planner incorrectly avoiding optimization of the block following the active one.
- Added extra conditions to terminate planner early and avoid redundant computations.
7 anni fa
etagle
e0ca627033
Planner block HOLD flag
Allows the Stepper ISR to wait until a given block is free for use. Allows Planner to plan the first move, which is split into two.
7 anni fa
etagle
a11eb50a3e
Refactor and optimize Stepper/Planner
Better encapsulation and considerably reduce stepper jitter
7 anni fa
etagle
0566badcef
Add memory barrier, optimal interrupt on-off
Disabling an ISR on ARM has 3 instructions of latency. A Memory barrier is REQUIRED to ensure proper and predictable disabling. Memory barriers are expensive, so avoid disabling if already disabled (See https://mcuoneclipse.com/2015/10/16/nvic-disabling-interrupts-on-arm-cortex-m-and-the-need-for-a-memory-barrier-instruction/ )
7 anni fa
Scott Lahteine
7dc03ce721
Simplified fix for babystep pulse width
Alternative to the apparently superfluous double delay
7 anni fa
Scott Lahteine
65270d6a96
Fix LIN_ADVANCE + SWITCHING_EXTRUDER
Followup to #10656
7 anni fa
Bob Kuhn
9ad42d6617
add delay between pulse edges (#10778 )
7 anni fa
Scott Lahteine
83d42f33e1
Add HAS_HOTEND_OFFSET_Z conditional
7 anni fa
GMagician
3c76bda2d8
Fix switching extruder
`DONT_SWITCH` got lost along the way. Replace it with `DO_SWITCH_EXTRUDER` and adjust the code.
7 anni fa
Giuliano
e1d9046efc
[2.0.x] Temperature reading fix (#10774 )
7 anni fa
Scott Lahteine
50270b53a0
Clear up some more compile warnings
7 anni fa
Jiri Jaburek
43ddb29f9e
Add FAN_MAX_PWM for M106-controlled fans
7 anni fa
Scott Lahteine
836b0bbeee
Fix MBL line_to_destination
Fix #10708
7 anni fa
Scott Lahteine
ba4c32eec5
Followup to _AXIS patch
7 anni fa
Scott Lahteine
d9154ebdf6
Followup to math patch
7 anni fa
Scott Lahteine
883b0c9880
Convert custom maths to inlines (#10728 )
7 anni fa
Scott Lahteine
08e36e264e
Apply _AXIS macro
7 anni fa
Scott Lahteine
083ec9963e
Tweaks to heater / lcd conditions
7 anni fa
Scott Lahteine
99ecdf59af
Smarter MIN, MAX, ABS macros
Use macros that explicitly avoid double-evaluation and can be used for any datatype, replacing `min`, `max`, `abs`, `fabs`, `labs`, and `FABS`.
Co-Authored-By: ejtagle <ejtagle@hotmail.com >
7 anni fa