Skip to content

[BUG] S-Curve Acceleration - Velocity Jumps when changing direction #12491

@xenovacivus

Description

@xenovacivus

Hi,

The S-Curve Acceleration seems to work pretty well, but there's a velocity jump when an axis changes direction (or when an axis stops and starts again, but that's less likely to cause a resonance/missed step problem).

marlin-s-curve-steps

Zooming in shows a significant instantaneous spike in step time (from -2700 steps per second to +250 steps per second).

marlin-s-curve-steps-zoom

I see this with a clean build of the bugfix-2.0.x branch (Nov. 20), and my configuration is a stock Teensy++2.0 target with the following changes:
#define DEFAULT_MAX_ACCELERATION { 100, 100, 100, 100 }
#define DEFAULT_MAX_FEEDRATE { 300, 300, 300, 25 }
#define DEFAULT_AXIS_STEPS_PER_UNIT { 80, 80, 80, 500 }
#define S_CURVE_ACCELERATION

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions