def run(): shared_all.move_crane_down(motor=crane_motor, degrees=20) crane_motor.run_angle(720, 100) ## Below lines only for testing ## Comment out when done testing. Do not upload to Git hub without commenting. # shared_all.calibrate_gyro(0) # align() # run()
def move_crane_down(crane_motor, degrees): crane_motor.run_angle(90, -1 * degrees, Stop.BRAKE)
def move_crane_up(crane_motor, degrees): crane_motor.run_angle(90, degrees, Stop.BRAKE)
def move_crane_up(crane_motor, degrees): log_string('Angle at start ' + str(crane_motor.angle())) wait(100) crane_motor.run_angle(90, degrees, Stop.BRAKE) log_string('Angle at end ' + str(crane_motor.angle()))
def fastflip(): shared_all.move_crane_down(motor=crane_motor, degrees=20) crane_motor.run_angle(720, 100)
def move_crane_down(crane_motor, degrees): log_string('Down Angle at start ' + str(crane_motor.angle())) wait(100) crane_motor.run_angle(90, -1 * degrees) log_string('down Angle at end ' + str(crane_motor.angle()))