Skip to content

Commit 610427b

Browse files
add available() function for Modulino Movement (query if new acceleration data from the modulino is available)
1 parent feef426 commit 610427b

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)