54 Commits (d43d4e421977e333f1a7fbff8b939e0288b3616c)

Author SHA1 Message Date
Roxy-3D 0780913848 IDEX Improvements (#11848) 6 years ago
Holger Müller 1a6f2b29b8 Add support for Triple-Z steppers/endstops 6 years ago
Scott Lahteine 215eee4fe5 Use 'friend' to access set_directions 6 years ago
Cassiano Leal ff51e7322d Fix for Stepper::set_directions() compilation error (#11838) 6 years ago
Scott Lahteine d882717d98
Save some PROGMEM with constexpr (#11798)
When possible, make `active_extruder` a `constexpr` to save some PROGMEM.
6 years ago
Scott Lahteine a4b0148365 Easier to find 'static inline' 6 years ago
Scott Lahteine aa4cd2e861 Eliminate stepper.* signed/unsigned warnings 7 years ago
Eduardo José Tagle edb21f349a Fix stepper/planner block handling, race conditions (#11098)
- Allow planner to alter the deceleration phase of the currently executing block.
- Remove BUSY flag, as it is NON ATOMIC to set bits in the Stepper ISR and Planner at the same time.
7 years ago
Eduardo José Tagle 48a15d1c7e [2.0.x] Fix stepper/planner race condition and Stepper pulse timer (#11081)
* Planner: Removal of some race conditions between Stepper ISR and Planner, some of them pointed out by @AnHardt, some of my own findings
* Fixing timing on stepper pulses adding a compensation for the non-null time required to set ports.
7 years ago
Scott Lahteine 7406f04029 Use MAX (not max) in stepper.h 7 years ago
Scott Lahteine 0d79128c8d Localize stepper-specific defines 7 years ago
Scott Lahteine 4dbec774b5 HAL_*_TIMER_RATE => *_TIMER_RATE 7 years ago
Scott Lahteine 43bdd0bfe4 Fix indent in stepper.h 7 years ago
etagle 39a7e7720d Adaptive multiaxis step smoothing
- Stepper bugs fixed
- Support MIXING_EXTRUDER with Linear Advance
- Miscellaneous cleanup
7 years ago
Scott Lahteine ad8d3150aa Cleanup for dual endstops homing 7 years ago
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 years ago
Scott Lahteine 6919e87656 Minor cleanup of multi-stepping logic 7 years ago
Scott Lahteine aaaf09bda2 BEZIER_JERK_CONTROL => S_CURVE_ACCELERATION 7 years ago
Scott Lahteine 3e3789da85
Regression: Endstops Core compatibility (#10823)
Co-Authored-By: ejtagle <ejtagle@hotmail.com>
7 years ago
Scott Lahteine 65a004564c Stepper::set_position needed for some applications 7 years ago
Scott Lahteine 435ecb6b67 Followup to stepper/planner refactor 7 years ago
etagle 569df3fc0c Fix interrupt-based endstop detection
- Also implemented real endstop reading on interrupt.
7 years ago
etagle a11eb50a3e Refactor and optimize Stepper/Planner
Better encapsulation and considerably reduce stepper jitter
7 years ago
Scott Lahteine 883b0c9880
Convert custom maths to inlines (#10728) 7 years ago
Scott Lahteine 8f8c6a9bc4
Move get_axis_position_mm to Planner (#10718) 7 years ago
Scott Lahteine 306f0f2135
Move Stepper::synchronize to Planner (#10713)
Co-Authored-By: ejtagle <ejtagle@hotmail.com>
7 years ago
Scott Lahteine d1b619be52 Standardize some hexadecimals 7 years ago
Scott Lahteine af1950a63e Improve sync of stepper positions 7 years ago
Scott Lahteine 0c23792344 Apply int32_t to stepper 7 years ago
Eduardo José Tagle 57a899a412 [2.0.x] 6th-order jerk-controlled motion planning in real-time for AVR (#10373) 7 years ago
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!)
7 years ago
Scott Lahteine 9515e5aefb Fix LA_active_extruder (static) 7 years ago
Scott Lahteine ca0def766e LIN_ADVANCE single stepper optimization 7 years ago
Scott Lahteine 2bd252b501
[2.0.x] LIN_ADVANCE v1.5 (#9712) 7 years ago
Scott Lahteine c241da32e8 stepper.h parity with 1.1.x 7 years ago
Scott Lahteine 03d790451f
[2.0.x] HAL timer set/get count => set/get compare (#9581)
To reduce confusion over the current timer count vs. the compare (aka "top") value. Caution: this re-uses the function name, changing its meaning.
7 years ago
Thomas Moore f7efac57b7 Multi-host support 7 years ago
Scott Lahteine 8df5955da4 Revert "Reset timer count before first block step"
This reverts commit 5cf6a062e3.
7 years ago
Scott Lahteine 73e32925e4 References are better for array args 7 years ago
Scott Lahteine 5cf6a062e3 Reset timer count before first block step 7 years ago
Scott Lahteine 4fa65a5c25 TCNT0 => HAL_timer_get_current_count
Fix #8710
7 years ago
Scott Lahteine de3d3b9cb1 Put FORCE_INLINE before static 7 years ago
Scott Lahteine 9898b96992 No lcd_map_control flag in quick_stop 7 years ago
Scott Lahteine 6040d4080e Cleanup stepper ISR. Allow cleaning for endstops. 7 years ago
Scott Lahteine 2246316605 Fix name collision. timer_t => hal_timer_t 7 years ago
Scott Lahteine 723f2a77f6 Implement support for Dual X and Y endstops 7 years ago
Thomas Moore 9e699811d2 Make LPC1768 pinmapping not specific to Re-ARM (#8063)
* Merging early because of build failures.  See #8105

* Make LPC1768 pinmapping not specific to Re-ARM

* Add HAL_PIN_TYPE and LPC1768 pin features

* M43 Updates

* Move pin map into pinsDebug_LPC1768.h

* Incorporate comments and M226

* Fix persistent store compilation issues

* Update pin features

* Update MKS SBASE pins

* Use native LPC1768 pin numbers in M42, M43, and M226
7 years ago
Bob-the-Kuhn 26bfae58d4 MPC4451 I2C support 7 years ago
Scott Lahteine 03f4891fb9 Remove legacy ADVANCE feature 7 years ago
Scott Lahteine 8315a8a716 Apply fixes for DUE
Alternative to #7882. If F_CPU is greater than 1000 it can be evenly divided by 8. Over 10000, 16; over 100000, 32; over 1 million, 64; etc.
7 years ago