Scott Lahteine
9c058091e9
No M914 or SGT set for non-sensorless axes
7 years ago
Scott Lahteine
568cfe7caa
Add thermistor 501 (100K Zonestar)
7 years ago
Scott Lahteine
c51e27d11d
Do a hard kill for failed homing moves ( #11161 )
7 years ago
Scott Lahteine
90ba77ea0f
Lose the old HOMEAXIS macro
7 years ago
Scott Lahteine
2421f3a47d
Detect endstop hits in any direction
7 years ago
Scott Lahteine
8eaac0dab3
Add delta feedrate scaling ( #11153 )
7 years ago
Scott Lahteine
bd7f5848f1
Remove JUNCTION_DEVIATION_INCLUDE_E option ( #11147 )
7 years ago
Scott Lahteine
42f9921482
Ignore Z min endstop with separate Z-probe
...
To allow for the case where a Z endstop (e.g., hall effect) is higher than the probe trigger point, don't check the Z min endstop during probe moves. See #11134
7 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
Scott Lahteine
4d3a9930c5
Match ASM comment spacing to 1.1.x
7 years ago
Scott Lahteine
053438a3aa
Poll all endstops, even when stationary ( #11123 )
7 years ago
Andy Shaw
3b3029c4bf
Make max_e_jerk an array to reduce CPU usage ( #11118 )
7 years ago
Giuliano
8d8f257384
[2.0.x] Fix advanced pause init values ( #11095 )
...
Fixed for cycle used to initialize default values
7 years ago
etagle
5b49fccf80
Add stepper driver DIR delay configuration option
...
...and recommended pulse width configuration for A4988
7 years ago
etagle
fb4e0b105b
Fix endstops compilation error
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
50b6204079
Fix LIN_ADVANCE max_e_jerk_factor
...
According to https://github.com/MarlinFirmware/Marlin/issues/9917#issuecomment-399204568
7 years ago
Scott Lahteine
99591dc20c
Filter endstops state at all times ( #11066 )
7 years ago
Scott Lahteine
7406f04029
Use MAX (not max) in stepper.h
7 years ago
Scott Lahteine
da94e0bd27
Unsigned eeprom mesh addresses
7 years ago
Scott Lahteine
4c8d6df13c
Extra insurance against endstop false positives ( #11013 )
7 years ago
Scott Lahteine
81edbfa665
Merge pull request #11004 from ejtagle/always_honor_maximum_step_rate
...
[2.0.x] Fix stepper pulse minimum period and timing calculations
7 years ago
Scott Lahteine
f3fed52348
Fix coolstep_min_speed / sensorless homing
...
Fix #8890
7 years ago
etagle
a215725df6
Fix stepper pulse timing
...
Always honor minimum period on stepper pulse generation, and fix timing calculations
Signed-off-by: etagle <ejtagle@hotmail.com>
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
9d04f47d98
Improvements for junction_deviation_mm
...
- Drop `max_jerk` with `JUNCTION_DEVIATION`
- Add `max_e_jerk_factor` for use by `LIN_ADVANCE`
- Recalculate `max_e_jerk_factor` when `junction_deviation_mm` changes
- Fix LCD editing of `junction_deviation_mm`
7 years ago
Scott Lahteine
f2c3b0d476
Use bit flags for homed/known
7 years ago
Scott Lahteine
43bdd0bfe4
Fix indent in stepper.h
7 years ago
Scott Lahteine
3fd1f32b73
Fix ADC key and chamber temp
7 years ago
Scott Lahteine
a2f521d34b
Add Junction Deviation mm runtime setting ( #10990 )
7 years ago
etagle
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.
7 years ago
etagle
39a7e7720d
Adaptive multiaxis step smoothing
...
- Stepper bugs fixed
- Support MIXING_EXTRUDER with Linear Advance
- Miscellaneous cleanup
7 years ago
Giuliano
b64cc9329e
[2.0.x] Fix dual enstop home ( #10980 )
7 years ago
Scott Lahteine
3701869e6c
Add HAL_timer_start for AVR, use stepper timer to time pulses
7 years ago
etagle
d82704354f
Increase the planner first block HOLD delay to 100mS
7 years ago
Scott Lahteine
334341c632
Hephestos config updates ( #10960 )
7 years ago
Scott Lahteine
55aedf036b
Fix M503 ABL mesh report. (Zero-based IJ indices)
7 years ago
Scott Lahteine
d8b983f624
More concise M503 output for M906, M913, M914 ( #10947 )
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
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 years ago
Scott Lahteine
d259070980
Clean up trailing spaces from vim, etc.
7 years ago
Scott Lahteine
b90f54b0fc
Improve probe logging
7 years ago
Scott Lahteine
4299e5dc8b
Modify E-stepping macros for use in LINEAR_ADVANCE ( #10885 )
7 years ago
Scott Lahteine
8f14ef855d
More concise commentary in planner.cpp
7 years ago
Scott Lahteine
6919e87656
Minor cleanup of multi-stepping logic
7 years ago
Scott Lahteine
853a9056ac
Long thermistor tables need special consideration
7 years ago
Scott Lahteine
a4f9c3373f
Tweak thermistor spacing
7 years ago
Scott Lahteine
1ce97f1f6d
Faster (bisect) search in thermistor tables ( #10883 )
7 years ago
Scott Lahteine
0ca9db7051
Correct HOTENDS for SWITCHING_EXTRUDER
7 years ago
Eduardo José Tagle
7b9f0302d4
Fix Bresenham rounding errors, add link to article ( #10871 )
7 years ago
Scott Lahteine
2566342979
Adjust some commentary
7 years ago
Scott Lahteine
6775a16c97
Fix switching extruder stepping with LA
7 years ago
Scott Lahteine
931ab4ec40
Rename Junction Deviation options
7 years ago
Scott Lahteine
aaaf09bda2
BEZIER_JERK_CONTROL => S_CURVE_ACCELERATION
7 years ago
Scott Lahteine
01d37e00af
Fix up stepper ISR with linear advance timing ( #10853 )
...
Co-Authored-By: ejtagle <ejtagle@hotmail.com>
7 years ago
Scott Lahteine
7261f48872
Fix reset of endstops and move state
7 years ago
Scott Lahteine
50fa8e01c1
Minor optimization of axis_did_move bits
7 years ago
Scott Lahteine
f28e366b77
Followup for core endstops
7 years ago
Scott Lahteine
9644d56b42
Patches for core motion tests
7 years ago
Scott Lahteine
3e3789da85
Regression: Endstops Core compatibility ( #10823 )
...
Co-Authored-By: ejtagle <ejtagle@hotmail.com>
7 years ago
Scott Lahteine
4b610b333e
Tweak G38 formatting
7 years ago
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 years ago
Scott Lahteine
0c3773d724
Cleanup in stepper_indirection.h
7 years ago
Scott Lahteine
4b2f6e3b2b
[2.0.x] Add endstop noise filter ( #10796 )
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
Bob Kuhn
d557c84a71
[2.0.x] Error for FAST_PWM_FAN with 32 bit CPU ( #10798 )
7 years ago
etagle
569df3fc0c
Fix interrupt-based endstop detection
...
- Also implemented real endstop reading on interrupt.
7 years ago
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 years ago
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 years ago
etagle
a11eb50a3e
Refactor and optimize Stepper/Planner
...
Better encapsulation and considerably reduce stepper jitter
7 years ago
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 years ago
Scott Lahteine
7dc03ce721
Simplified fix for babystep pulse width
...
Alternative to the apparently superfluous double delay
7 years ago
Scott Lahteine
65270d6a96
Fix LIN_ADVANCE + SWITCHING_EXTRUDER
...
Followup to #10656
7 years ago
Bob Kuhn
9ad42d6617
add delay between pulse edges ( #10778 )
7 years ago
Scott Lahteine
83d42f33e1
Add HAS_HOTEND_OFFSET_Z conditional
7 years ago
GMagician
3c76bda2d8
Fix switching extruder
...
`DONT_SWITCH` got lost along the way. Replace it with `DO_SWITCH_EXTRUDER` and adjust the code.
7 years ago
Giuliano
e1d9046efc
[2.0.x] Temperature reading fix ( #10774 )
7 years ago
Scott Lahteine
50270b53a0
Clear up some more compile warnings
7 years ago
Jiri Jaburek
43ddb29f9e
Add FAN_MAX_PWM for M106-controlled fans
7 years ago
Scott Lahteine
836b0bbeee
Fix MBL line_to_destination
...
Fix #10708
7 years ago
Scott Lahteine
ba4c32eec5
Followup to _AXIS patch
7 years ago
Scott Lahteine
d9154ebdf6
Followup to math patch
7 years ago
Scott Lahteine
883b0c9880
Convert custom maths to inlines ( #10728 )
7 years ago
Scott Lahteine
08e36e264e
Apply _AXIS macro
7 years ago
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 years ago
Scott Lahteine
083ec9963e
Tweaks to heater / lcd conditions
7 years ago
Scott Lahteine
8f8c6a9bc4
Move get_axis_position_mm to Planner ( #10718 )
7 years ago
Scott Lahteine
a1062eec5b
Better handling of DELAY_NS and DELAY_US ( #10716 )
...
Co-Authored-By: ejtagle <ejtagle@hotmail.com>
7 years ago
Scott Lahteine
f5aaa2d6c0
Fix some compiler warnings
7 years ago
Scott Lahteine
3614e6ce0f
Fix Switching Extruder with Linear Advance
7 years ago
Scott Lahteine
625035a9ce
Fix M301 access to lpq_len ( #10714 )
...
Co-Authored-By: Zwaubel
7 years ago
Scott Lahteine
306f0f2135
Move Stepper::synchronize to Planner ( #10713 )
...
Co-Authored-By: ejtagle <ejtagle@hotmail.com>
7 years ago
Giuliano
d99f1b2245
[2.0.x] EEPROM code cleanup ( #10710 )
7 years ago
Scott Lahteine
325bbbc8c2
[2.0.x] Enable AD595 and AD8495 in concert ( #10693 )
...
* Allow both AD595 and AD8495 in concert
* General temperature code tweaks
7 years ago
Scott Lahteine
23a876b08d
Update a comment in motion.cpp
7 years ago
Scott Lahteine
439e0cdd0f
Patch up reverse_pass_kernel (and other planner code) ( #10674 )
7 years ago
Scott Lahteine
57c2f8d2f6
Trailing whitespace cleanup
7 years ago
Scott Lahteine
b76344c080
More Trinamic cleanup
7 years ago
Scott Lahteine
722aba77f3
Fix LIN_ADVANCE + SWITCHING_EXTRUDER stepper directions ( #10656 )
7 years ago
Scott Lahteine
a225d2e99e
Fix compilation with UBL and Arc/Bézier
...
Fix #10660
7 years ago
Scott Lahteine
6d9ec1852a
Fix compilation of say_units
...
Fixes #10663
7 years ago
Scott Lahteine
19f189b4e5
Add UBL support for G2/G3 and G5 ( #10648 )
7 years ago
Scott Lahteine
4d4bf7897d
Junction Deviation jerk limiting option
7 years ago
Scott Lahteine
0436e16fb2
Apply shorthand Assembler macros
7 years ago
Scott Lahteine
d1b619be52
Standardize some hexadecimals
7 years ago
Scott Lahteine
55f1f8446b
Show correct current units in M503
7 years ago
Scott Lahteine
1f11b0f612
Fully init planner sync block
7 years ago
Scott Lahteine
bfe223e120
Adjust usage of stepper.synchronize
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
Scott Lahteine
81b632c255
Additional temp-oriented improvements
7 years ago
nightdemonx
e911635fb1
Add thermocouple with AD8495 support
7 years ago
Scott Lahteine
d7b699ec34
Fewer includes of vector_3.h
7 years ago
Scott Lahteine
2c1205d8b1
Improve debug of homing move feedrate
7 years ago
Scott Lahteine
c8e4b7c8a6
Fix XY homing move away rate
7 years ago
MagoKimbra
1f92b9a4ed
Fix do_probe_move with fr_mm_s ( #10576 )
7 years ago
Scott Lahteine
4dfc011d86
Fix homing with probe feedrates
7 years ago
Scott Lahteine
59fda986ea
Allow Z_AFTER_PROBING to be 0
7 years ago
Scott Lahteine
1dab44213a
Fix the TMC26X initializer CS pin argument
...
From #10531
Co-Authored-By: chriscg9 <chriscg9@users.noreply.github.com>
7 years ago
Scott Lahteine
7546f87949
Allow a home bump of 0 when homing Z with probe
7 years ago
Scott Lahteine
683dc24e0f
When homing with Z probe bump at Z_PROBE_SPEED_SLOW
7 years ago
Scott Lahteine
5ac226aa93
Further cleanup of inline delays
7 years ago
Chris Pepper
2242b98248
[LPC176x] Emergency Parser Feature ( #10516 )
7 years ago
Scott Lahteine
9789c1c719
Fix current_temperature_chamber compile error
...
Fix #10505
7 years ago
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.
7 years ago
Scott Lahteine
f423e54f77
Strip trailing spaces
7 years ago
Scott Lahteine
cb46cb8480
Add HAS_HEATED_BED conditional ( #10495 )
7 years ago
Scott Lahteine
a90cbc6339
[2.0.x] Wait for bed heaters between probing ( #10472 )
7 years ago
Scott Lahteine
5a064d0e94
Fix bug in planner.set_position_mm
7 years ago
Scott Lahteine
8f57e098de
Use end-of-line comments in planner.cpp
7 years ago
Scott Lahteine
36b97bde9f
clear_block_buffer, kill_current_block in quick_stop
7 years ago
Luc Van Daele
12785583d0
[2.0.x] G33 MIN_STEPS_PER_SEGMENT ( #10386 )
7 years ago
Luc Van Daele
646aa20b43
Overhaul of G33 Delta Calibration ( #8822 )
7 years ago
Luc Van Daele
ac2e0afb62
Low Point for delta calibration ( #10363 )
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
Sean
2d9b0a66fe
Add Filament Change accelerations
7 years ago
Scott Lahteine
8b8ad14178
Add Z_PROBE_LOW_POINT to prevent damage
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
Lenbok
0e8242180d
Chamber temperature monitoring and auto fan control.
...
This is an initial cut for feedback, updated for 2.0.x.
Chamber temperature is currently reported along with hot end and bed
temperatures to serial. The format is just like that used for hot end
and bed temperatures, but using 'C' prefix. As there is no heater,
target is always 0. Is this appropriate, is there a better way to report
chamber temperatures?
Chamber temperatures are not reported on the LCD in any way.
When auto chamber fan is enabled, it currently just uses the same
temperature threshold as the other auto controlled fans.
As the chamber temperature is not connected to any heater, it doesn't
undergo mintemp/maxtemp monitoring. This would need to change in the
future if chamber heating became a feature.
7 years ago
Marcio Teixeira
75037493fa
Default active low for TMC2130 DIAG1 ( #10294 )
...
- Added sanity check to inform users to set the endstop to inverting
when using SENSORLESS_HOMING
7 years ago
Scott Lahteine
e8e60263c8
Scale feedrate (mm/s to deg/s) for SCARA
7 years ago
Scott Lahteine
1c36606886
Fix MSG_HEATING_FAILED_LCD_BED macro evaluation
7 years ago
Scott Lahteine
fe91514395
MBL should add z_offset regardless of fade ( #10308 )
7 years ago
Marcio Teixeira
8bc93c6f2b
Improve heating/cooling LCD messages ( #10293 )
7 years ago
GMagician
21a47b50f4
Additional tool-change fixes ( #10304 )
...
Followup to #10257
7 years ago
Karl Andersson
7cbbc2af7a
[2.0.x] Optional heater signal inversion ( #10260 )
7 years ago