Can't reach max speed when accelerating using AccelStepper

You may also be interested in Robin2's Simple acceleration code.