You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

32 lines
645 B

from table import Table
import time
def goCrazy():
table = Table()
table.move(0)
while True:
print("Lowest Distance: " + str(table.currentHeight()))
print("Movement: " + str(table.getMovement()))
table.triggerRelay(1)
time.sleep(3)
print("Highest Distance: " + str(table.currentHeight()))
print("Movement: " + str(table.getMovement()))
table.triggerRelay(-1)
time.sleep(3)
def standingHeight():
table = Table()
table.move((82 - table.currentHeight()) * -1)
def sittingHeight():
table = Table()
table.move((120 - table.currentHeight()) * -1)