rpm function added for part 1

This commit is contained in:
2026-09-10 12:58:40 +00:00
parent aa3833b274
commit 285211fae6
9 changed files with 24 additions and 13 deletions
+4
View File
@@ -44,6 +44,10 @@ void RotaryEncoderDriver::update_delta() {
float RotaryEncoderDriver::count_per_sec() {
return delta / (256.0f * 0.0001f);
}
float RotaryEncoderDriver::rpm() {
return (count_per_sec() * 60) / 1050.0;
}