Skip to content

Commit 550e612

Browse files
authoredFeb 20, 2025··
Merge pull request #24 from leonardocavagnis/modulino-movement-available
add `available()` function for Modulino Movement
2 parents feef426 + 610427b commit 550e612

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎src/Modulino.h

+6
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,12 @@ class ModulinoMovement : public Module {
317317
}
318318
return 0;
319319
}
320+
int available() {
321+
if (initialized) {
322+
return _imu->accelerationAvailable();
323+
}
324+
return 0;
325+
}
320326
float getX() {
321327
return x;
322328
}

0 commit comments

Comments
 (0)
Please sign in to comment.