-
Notifications
You must be signed in to change notification settings - Fork 388
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fast-path timing calculations and raise maximum speed to 312,500eRPM.
Previous maximum was about 178,571eRPM. Divide by "pole pairs" to find actual RPM; for example, for a 12N14P motor, divide by (14 / 2) or 7. The trade-off is slightly more code because of the two paths: one for the usual full 24-bit calculations, and one for 16-bit calculations when they are sufficient as a result of the shorter timing period. Note that TIMING_MIN isn't even enforced since 48fe82e -- Oops.
- Loading branch information
Showing
1 changed file
with
79 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters