You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In general multiplication is faster than division. The Atmega 328 (and I assume 168) has hardware multiply but not hardware division so multiply is very much faster. I suggest changing calFactor to a multiplier internally.
calFactorRecip = 1 / calFactor;
and then multiply raw values by calFactorRecip.
I may be able to get a pull request done with proposed changes but I don't know when so I will raise this as an issue.
The text was updated successfully, but these errors were encountered:
In general multiplication is faster than division. The Atmega 328 (and I assume 168) has hardware multiply but not hardware division so multiply is very much faster. I suggest changing calFactor to a multiplier internally.
calFactorRecip = 1 / calFactor;
and then multiply raw values by calFactorRecip.
I may be able to get a pull request done with proposed changes but I don't know when so I will raise this as an issue.
The text was updated successfully, but these errors were encountered: