Commit Graph

286 Commits (e92e2b2446729b1eb3e208d407acb2e8e2e22424)

Author SHA1 Message Date
Sebastianv650 f9bea7968f BugFix for incorrect E-speed calculation
The extrusion speed was wrong due to a not high enough precision of
esteps to XY steps, therefore now the target float values are used to
calculate the ratio between XY movement and extrusion speed.
The e_speed_multiplier8 was replaced by an absolute multiplier called
abs_adv_steps_multiplier8, therefore one multiplication and bitshift can
be saved inside the stepper ISR. Due to this, also extruder_advance_k is
better suited inside the planner and not the stepper files any more.
Scott Lahteine 43df9ace4e Merge pull request from thinkyhead/rc_z2_min_allowed
Support Z2 min in M119 report
Scott Lahteine 75dbb71dd7 Replace block.busy with a block.flag bit
Scott Lahteine 8cebd2a7db Arrange Z2 min before Z2 max
Scott Lahteine 083d41a2c2 Remove redundant estep rate code from LIN_ADVANCE
As noted by https://github.com/MarlinFirmware/Marlin/pull/4971#issuecomment-252503295
Scott Lahteine 2cb5df8a56 Merge pull request from
Small fix for the PR  (LIN_ADVANCE bug fix and optimization)
Scott Lahteine f8199b2cc1 Merge pull request from thinkyhead/rc_abl_bugfix
Fix planner with kinematics, delta ABL
esenapaj cfb5c24bc9 Small fix for the PR (LIN_ADVANCE bug fix and optimization)
・Fix a comment about timer
Scott Lahteine c5cac486f5 Use a, b, c instead of lx, ly, lz
Scott Lahteine 3752d9aca8 Fix timer comments
Sebastianv650 a448cedbc5 LIN_ADVANCE bug fix and optimization
.) long to int: Extruder stalls at 10kHz / 20kHz step limits with long.
.) Take the delta_adv_steps calculation out of the step_loops loop. Wasted calculation performance if done inside.
.) >> 2 replaced by 3: Is divide by 8. Reason: Timer 0 runs at 16/8=2MHz, Timer 1 at 16/64=0.25MHz. ==> 2/0.25=8.
esenapaj f8df88f271 Move routine of direction signal of ADVANCE and LIN_ADVANCE from Stepper::isr() to Stepper::advance_isr()
Scott Lahteine ecf7cdde65 Augment planner/stepper getters/setters
Scott Lahteine 5fff8d148b Clean up digital pots and microsteps
Scott Lahteine cb48292338 Use fastio for literal pins
Scott Lahteine eabff30e75 Improve MINIMUM_STEPPER_PULSE
Scott Lahteine cc639d7d9c Less indentation in Stepper::isr
Scott Lahteine 7dec8071b2 Always synchronize in Stepper::set_position
esenapaj 954563d603 Adjust spacing
esenapaj 7e9576dc5b Extend the e_steps[] from int to long for allowing more than 32,767 E steps
Probably needed for long straight lines when using high microstepping
esenapaj b04ed8f9c3 Fix inverted stepper signal of ADVANCED and LIN_ADVANCED
esenapaj 8692748ecd Fix broken direction signal of ADVANCED and LIN_ADVANCED
Remove a setting proccess of E direction in advance_isr()
Scott Lahteine edfaf1c582 Stepper::report_positions patch
Scott Lahteine 6f71bd7372 Merge pull request from thinkyhead/rc_mixing_regression
Unify counter_m and counter_M
Scott Lahteine 9bf78ef465 Fix capitalization of counter_m
Scott Lahteine 42b5616327 Try bool for direction instead of long
Scott Lahteine d07a913f21 Tweak to stepper advance e_steps update
Scott Lahteine 426f662586 Apply MINIMUM_STEPPER_PULSE in stepper advance_isr
Scott Lahteine 8c7ee4599e Optimize stepper advance_isr
Scott Lahteine 9725bcd099 Minor "optimizations" in stepper ISR
Scott Lahteine 4ec3d1ea58 Add some commentary to stepper ISR
Scott Lahteine d9bcc7bb45 Set a bool when a stepper block is done
Scott Lahteine 08f717e5f7 Use bit-size typedefs for some stepper vars
Scott Lahteine 759234af60 MINIMUM_STEPPER_PULSE option
Scott Lahteine a28e15399f Patch stepper.cpp to allow omitting steppers
Scott Lahteine 2f223b8c79 Use ABC and XYZ for "3"
Scott Lahteine d8f2876753 Replace some float division with multiplication
Scott Lahteine f8b5749235 Replace division in planner with multiplication
Scott Lahteine 176b9627c7 Some cleanup ahead of BLTOUCH support
Scott Lahteine 05da02f0a2 Implement MIXING_EXTRUDER and SWITCHING_EXTRUDER
Scott Lahteine 4b4a582c4f X_DUAL_STEPPER_DRIVERS implementation
Scott Lahteine bd491818d6 Reduce storage requirements for strings, make some PGM
Scott Lahteine 61f34eec03 Merge pull request from jbrazio/bugfix/planner-warning
Fixes some compiler warnings
João Brázio 664232140d
Fixes somes compiler warnings
Sebastianv650 0c5192b288 Patch LIN_ADVANCE timing issue
Also the extruder stepper ISR has to keep an eye on step_loops count.
Scott Lahteine 8d8180e028 Parse M905 args in Marlin_main.cpp
Scott Lahteine 2b340f5acb patch LIN_ADVANCE to use code_value_float
Scott Lahteine aad9c0ed8d Apply updated ISR timing code
Scott Lahteine 506d78b2f8 Run the advance_isr faster instead of doing multiple e-steps per interrupt
Scott Lahteine 6d62a4ffc8 Patch LIN_ADVANCE for style and forward-compatibility