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