AccelStepper Constant speed Acceleration Problem

Hello.

I'm new to Arduino forum, but I'm not new to electronics and programming. I am currently working on a robot that has 6 stepper motors and 6 stepper drivers (pul, dir control), controlled by arduinoMega2560 and accelStepper library. 2 of those 6 motors work constantly, and all motors have the option of "Manual control" via switches. everything is a problem because I use

stepper.setSpeed(800);
stepper.runSpeed();

The AccelStepper library, as I noticed, does not support acceleration and deceleration if it is a setSpeed ​​line of code, but only if it is

stepper.move();
stepper.moveTo();
stepper.run();

I asked the experts who say that the libraries are only for testing and not for working with multiple stepper motors, that "raw codes" without libraries are used for that. Of course, speeding up would be a big problem due to the narrowing of the pulse to each subsequent pulse. if someone had the same problem and solved it, I would be grateful if you could help me, or if the author of the library changes and updates it a bit

Thanks a lot.

ELECTRAMER

Since your question is about stepper motors and not the IDE I'm going to move it to another board where it will fit a little better.

Usually when I have multiple steppers to deal with I end up working out the math of what has to happen first on paper and then turn that math into code.

Try MobaTools