Skip to content

feat: motion status passing isLifted output #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=Arduino_AlvikCarrier
version=1.1.0
version=1.1.1
author=Arduino, Giovanni di Dio Bruno, Lucio Rossi
maintainer=Arduino <[email protected]>
sentence=Library and firmware for Arduino Alvik Carrier board
Expand Down
2 changes: 1 addition & 1 deletion src/Arduino_AlvikCarrier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,7 @@ bool Arduino_AlvikCarrier::isShaking(){
}

uint8_t Arduino_AlvikCarrier::getMotion(){
return tilt_status | isShaking();
return tilt_status | (isLifted() << 1) | isShaking();
}


Expand Down
2 changes: 1 addition & 1 deletion src/definitions/robot_definitions.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ const float MOTION_FX_PERIOD = (1000U / MOTION_FX_FREQ);
// Library version
#define VERSION_BYTE_HIGH 1
#define VERSION_BYTE_MID 1
#define VERSION_BYTE_LOW 0
#define VERSION_BYTE_LOW 1

// Battery stats
#define BATTERY_ALERT_MINIMUM_CHARGE 20.0
Expand Down
Loading