예제 #1
0
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()
예제 #2
0
def move_crane_down(crane_motor, degrees):
    crane_motor.run_angle(90, -1 * degrees, Stop.BRAKE)
예제 #3
0
def move_crane_up(crane_motor, degrees):
    crane_motor.run_angle(90, degrees, Stop.BRAKE)
예제 #4
0
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()))
예제 #5
0
def fastflip():
    shared_all.move_crane_down(motor=crane_motor, degrees=20)
    crane_motor.run_angle(720, 100)
예제 #6
0
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()))