131 Commits (b33739d49334327c65545760aadde6e94c79109b)

Author SHA1 Message Date
Scott Lahteine 72de280c1e BARICUDA valve pressure consistently uint8_t 8 years ago
Scott Lahteine 6c45d0fd81 Apply maths macros and type changes ahead of HAL 8 years ago
Scott Lahteine 6ce2b1ff4a G33 evolutionary changes 8 years ago
Scott Lahteine ed81e9b3d3 Adjust leveling conditionals 8 years ago
Scott Lahteine a64e5659ce Clean up G26 external references, private vars 8 years ago
Scott Lahteine ccda63c473 Drop the accessor form for LCD value editing 8 years ago
Scott Lahteine ff0018e287 Format hex values as uppercase 8 years ago
Thomas Moore f8e77d6545 Add Linear Advance values to EEPROM and enable configuration of K via LCD 8 years ago
Scott Lahteine 0e71e7b2fb Cleanup to planner.cpp 8 years ago
Scott Lahteine b5711a99a2 Patches to bring UBL closer to compliance 8 years ago
MagoKimbra a4a9bd8bc9 Fix BUG set_position_mm
Set postion must have axis and not E_AXIS + active_extruder.
8 years ago
Scott Lahteine b3e2bd6f29 Reduce E_D_ratio code 8 years ago
Sebastianv650 de6c40ed8f Add option to fix E/D ratio
Work around for slicers producing buggy gcode.
8 years ago
Scott Lahteine 82fde7df2e Merge pull request #5512 from AnHardt/speed-compare-bbr
Optimize handling of block_buffer_runtime()
8 years ago
AnHardt 292eb365c6 Optimize handling of block_buffer_runtime()
millis_t is long - divisions take for ever.

Return a kind of millisecond instead of microsecond -
divided by 1024 instead of 1000 for speed. (2.4% error)

That does not matter because block_buffer_runtime is
already a too short estimation.
Shrink the return-type.
8 years ago
Scott Lahteine 87921f390a Clarify what are "logical" positions in the planner 8 years ago
Scott Lahteine 78d6d6e076 Merge pull request #5452 from thinkyhead/rc_save_your_mesh
Save Bed Leveling to EEPROM
8 years ago
Scott Lahteine 0d0aa6c20d Patch type for max_acceleration_mm_per_s2 save/restore 8 years ago
esenapaj 069c6b38dd Remove unnecessary tabs and spaces 8 years ago
AnHardt d0e24e0876 Adaptive screen updates for all kinds of displays
The target here is to update the screens of graphical and char base
displays as fast as possible, without draining the planner buffer too much.

For that measure the time it takes to draw and transfer one
(partial) screen to the display. Build a max. value from that.
Because ther can be large differences, depending on how much the display
updates are interrupted, the max value is decreased by one ms/s. This way
it can shrink again.
On the other side we keep track on how much time it takes to empty the
planner buffer.
Now we draw the next (partial) display update only then, when we do not
drain the planner buffer to much. We draw only when the time in the
buffer is two times larger than a update takes, or the buffer is empty anyway.

When we have begun to draw a screen we do not wait until the next 100ms
time slot comes. We draw the next partial screen as fast as possible, but
give the system a chance to refill the buffers a bit.

When we see, during drawing a screen, the screen contend has changed,
we stop the current draw and begin to draw the new content from the top.
8 years ago
AnHardt 13eebd11cf volatile_block_buffer_runtime_us
`block_buffer_runtime_us` is mangled in the planner and in the stepper-ISR.
So it needs to be volatile and interrupt protected.
8 years ago
AnHardt 87fe20b5f5 Simplify long_move()
We are not really interested in, if there are blocks.
All information we need is in `block_buffer_runtime_us`.
8 years ago
Scott Lahteine f089279263 Merge pull request #5431 from esenapaj/Suppress-warnings,-etc
Suppress warnings, etc
8 years ago
AnHardt 706b240251 Patch long_move()
While the last move in the planner_buffer is running
it's duration is already subtracted from block_buffer_runtime_us.
8 years ago
esenapaj e9393c3634 Suppress warnings, etc
・Suppress warnings
・Remove unused variable "did_update"
8 years ago
Scott Lahteine aa241c63b3 Include M205 note in configurations 8 years ago
Scott Lahteine 01e5d46ea7 Patch some planner compile errors 8 years ago
Scott Lahteine 3391c785c6 Support for distinct E factors 8 years ago
Scott Lahteine 0dfe95eaba Adjust formatting in Planner 8 years ago
esenapaj 3047f3c85c Suppress warning 8 years ago
Scott Lahteine e9e4208ff1 Merge pull request #5274 from Sebastianv650/improve_smooth_moves
Improvement for ENSURE_SMOOTH_MOVES
8 years ago
Scott Lahteine f6f77d34a1 Add a fade factor for mesh leveling 8 years ago
Sebastianv650 8190483eeb Improvement for ENSURE_SMOOTH_MOVES
Instead of waiting for a single long block, compare the complete block
buffer runtime for the long_move() check.
8 years ago
Scott Lahteine 2cc32d85a3 Adjust ENSURE_SMOOTH_MOVES coding style 8 years ago
Sebastianv650 de89dc9f04 Ensure smooth print moves even with LCD enabled
lcd_update can take so much time that the block buffer gets drained if
there are only short segments. This leads to jerky printer movements for
example in circles and a bad print quality.

This change implements a simple check: Only if the block currently
executed is long enough, run lcd_update.
This also means the printer will not show actual values on the LCD nor
will it respond to buttons pressed. A option that keeps the menu
accessible is also available.
Aditionaly, slow down if a block would be so fast that adding a new
block to the buffer would take more time. In this case, the buffer would
drain until it's empty in worst case.
8 years ago
Florian Heilmann d08867986e Add autotemp capabilities to M104
This allows M104 to pass the F and B parameters to enable autotemp as well
8 years ago
Sebastianv650 e3ffb58fbd Save some cycle inside the planner
planner.h:
fan speed is used to set integer variables, so no need for long.
Basicaly a byte should be enough for all the fan things, as it's 0-255?

planner.cpp:
Save some float multiplications.
We could squeeze out even more by defining feedrate_percentage,
saved_feedrate_percentage and flow_percentage as float instead of int.
Everytime they are used in the time-critical planner, they are casted to
float and multiplied by 0.01. Not done jet, as they are used in LCD menu
functions I don't know well enough.
8 years ago
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.
8 years ago
Scott Lahteine 23f05f8be7 Use bit-length types in block_t 8 years ago
Scott Lahteine 75dbb71dd7 Replace block.busy with a block.flag bit 8 years ago
Scott Lahteine 8e787304c9 const float ref args in planner.h 8 years ago
Sebastianv650 c397b9d60a Planner acceleration bugfix and speedup v2
.) Use already existing inverse_millimeters instead of /
block->millimeters.
.) Prevent overflow during acceleration calculation by checking if float
is necessary. Idea modified from Sailfish.
.) Save two uint32_t or even float multiplications by checking if
step[AXIS] has steps and if max acceleration is lower than accel. If
not, there is no need to check this axis.
8 years ago
Scott Lahteine 8e1cc9332a Replace block flag bools with flag bits
…and apply const to some method parameters
8 years ago
Scott Lahteine 5ce5a9c822 Marlin: planner.h tweak 8 years ago
Scott Lahteine d963020532 Sort out some header dependencies 8 years ago
Scott Lahteine c5cac486f5 Use a, b, c instead of lx, ly, lz 8 years ago
Josef Pavlik f8c2473a71 Improve planner kinematics, fix delta ABL 8 years ago
Scott Lahteine d19cfcfc1d max_jerk array, DEFAULT_XYJERK => DEFAULT_[XY]JERK 8 years ago
Scott Lahteine ecf7cdde65 Augment planner/stepper getters/setters 8 years ago
Scott Lahteine ea0dbee3c9 Enable ABL by type, support bilinear on cartesian 8 years ago