Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jitter on step movements #31

Open
denonbw opened this issue Feb 11, 2022 · 1 comment
Open

jitter on step movements #31

denonbw opened this issue Feb 11, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@denonbw
Copy link

denonbw commented Feb 11, 2022

Hello
I have a lot of jitter on step movements. I guess this is the same Problem as in ESP-FlexyStepper library : pkerspe/ESP-FlexyStepper#4
Is there a change to transfer the startAsService to this library as well?

Best regards and thanks for the great library

@pkerspe
Copy link
Owner

pkerspe commented Mar 7, 2022

@denonbw thanks for your ticket. When it comes to jitter please also read the FlexyStepper readme: https://github.com/pkerspe/ESP-FlexyStepper
It gives some general info on the topic and also helps to identify issues in your main loop.
Still I see your request and will see how the API can be modified to be able to set the "start as service" parameters during initilization of the server.

I did not test this, but you can always use the API to access the flexy stepper instances programatically, like this:
ESP_FlexyStepper *stepper = stepperMotorServer->getCurrentServerConfiguration()->getConfiguredFlexySteppers()[0];

Now you could call any function on the ESP_FlexyStepper instance directly, including the startAsService function.

But at the end I am not sure if this is of any help. The reason being that the ESPStepperMotorServer implements its own central service in the class "ESPStepperMotorServer_MotionController". This is running as a service and constantly checks if any of the FlexyStepper instances needs to perform a movement and if so triggers the "processMovement" function. (ESPStepperMotorServer_MotionController line 81).
So for now what I will implement is a configuration setting to define the CPU Core in which this task is running

@pkerspe pkerspe added the enhancement New feature or request label Mar 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants