Skip to content

Commit

Permalink
Merge pull request #24 from leonardocavagnis/modulino-movement-available
Browse files Browse the repository at this point in the history
add `available()` function for Modulino Movement
  • Loading branch information
leonardocavagnis authored Feb 20, 2025
2 parents feef426 + 610427b commit 550e612
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Modulino.h
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,12 @@ class ModulinoMovement : public Module {
}
return 0;
}
int available() {
if (initialized) {
return _imu->accelerationAvailable();
}
return 0;
}
float getX() {
return x;
}
Expand Down

0 comments on commit 550e612

Please sign in to comment.