Skip to content

Commit 670385b

Browse files
committed
feat: ArduinoAlvik method get_lifted returns True if the robot is in the lifted position
1 parent c77b095 commit 670385b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

arduino_alvik/arduino_alvik.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -906,6 +906,13 @@ def get_shake(self) -> bool:
906906
"""
907907
return bool(self._move_bits & 0b00000001)
908908

909+
def get_lifted(self) -> bool:
910+
"""
911+
Returns true if Alvik is lifted
912+
:return:
913+
"""
914+
return bool(self._move_bits & 0b00000010)
915+
909916
def get_tilt(self) -> str:
910917
"""
911918
Returns the tilt string eg: "X", "-Z" etc

0 commit comments

Comments
 (0)