def move_crane_to_top(crane_motor): crane_motor.run_until_stalled(180, Stop.COAST, 35)
def move_crane_to_floor(crane_motor): crane_motor.run_until_stalled(-180, Stop.COAST, 35) move_crane_up(crane_motor, degrees=5)
def move_crane_to_top(crane_motor): crane_motor.run_until_stalled(360, Stop.COAST, 35) move_crane_down( crane_motor, degrees = 10)
def move_crane_to_top(crane_motor): crane_motor.run_until_stalled(180, Stop.COAST, 50) move_crane_up(crane_motor, degrees=5)
def move_crane_to_floor(crane_motor): crane_motor.run_until_stalled(-180, Stop.COAST, 50)
def run(): crane_motor.run_until_stalled(-300, Stop.COAST, 35) crane_motor.run_time(720, 700) shared_all.move_crane_to_top(crane_motor)