|
|
|
@ -18,6 +18,7 @@ class Table:
|
|
|
|
|
# Reset both relays on set up |
|
|
|
|
self.move(0) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def currentHeight(self): |
|
|
|
|
""" |
|
|
|
|
Get current height of the table in CM. |
|
|
|
@ -31,6 +32,14 @@ class Table:
|
|
|
|
|
|
|
|
|
|
return False |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def getMovement(self): |
|
|
|
|
""" |
|
|
|
|
Get movement from sensor. |
|
|
|
|
""" |
|
|
|
|
return self.movement_sensor.value() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def move(self, direction): |
|
|
|
|
""" |
|
|
|
|
Direction should be an integer: |
|
|
|
|