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

Divide the speed vectors into 2 sets: slow and fast speeds #12

Open
felipe-m opened this issue May 26, 2022 · 0 comments
Open

Divide the speed vectors into 2 sets: slow and fast speeds #12

felipe-m opened this issue May 26, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request Firmware Microcontroller code

Comments

@felipe-m
Copy link
Member

These vectors are the halfstep (HS) periods and half microstep periods HuS
For fast speed (when slewing) we don't need the halfstep periods (so take them out)
For slow speeds, all the HuS are the same, so there is no need to have a vector for all of them, just one value.
Create a function to get the periods from the given speed.
Instead of having the vector as floats of microseconds, it would be better to have them as integers (maybe shorts), because the timers of the interrupts only accepts integers microseconds.

@felipe-m felipe-m added the enhancement New feature or request label May 26, 2022
@felipe-m felipe-m self-assigned this May 26, 2022
@felipe-m felipe-m added the Firmware Microcontroller code label May 26, 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 Firmware Microcontroller code
Projects
None yet
Development

No branches or pull requests

1 participant