Replies: 2 comments
-
|
The setSpeed/Acceleration are designed to only take effect, if one of the other commands are following. So my best bet is, that the while-loop is not actually waiting. Then the two versions are identical. Please share some more code to better understand the issue. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Definitely not the while loop, since without it the whole thing acts completely different to either scenario. It's alright though because I don't need this anymore. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
So I'm doing some stuff requiring move planning in advance and I'm trying to use the fact that setSpeed...() and setAcceleration() don't take effect until the next move() call, but it seems like setSpeedInHz() is taking effect instantly anyways. The only change I make is moving the pause loop from before the new speed setting to after, and it changes the behavior. There's no call to move() or to SetSpeedAcceleration() that is changing positions either.
Hardware: RP2040, 2x TMC2209 stepper drivers.
For example it goes from this:
to:
I would like to be able to set the desired settings then apply them when necessary to avoid delays from processing time, and I can work around this, but I just want to know if anyone else has experienced this.
it says this on line 378 of FastAccelStepper.h:
Beta Was this translation helpful? Give feedback.
All reactions