-
Notifications
You must be signed in to change notification settings - Fork 1
/
notes.txt
40 lines (33 loc) · 1.56 KB
/
notes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# checkLoader()
# if controller.axis3.value() > 10: #2 bar up
# moveArmUp(5,45)
# else:
# haltMotors(flywheelStatus,intakeStatus)
# """elif controller.axis3.value() < -10: #2bar down
# moveArmDown(5,45)
# elif controller.axis2.value() > 15: #forwards
# moveForwards(5,controller.axis2.value())
# elif controller.axis2.value() < -15: #backwards
# moveBackwards(5,controller.axis2.value())
# elif controller.axis1.value() < -15: #left
# moveLeft(5,controller.axis1.value())
# elif controller.axis1.value() > 15: #right
# moveRight(5,controller.axis1.value())
# elif controller.ButtonA.pressing(): #fire ball
# flywheelStatus = fireABall()
# sys.sleep(300)
# elif controller.ButtonB.pressing(): #intake on/off
# if intakeStatus == True:
# intakeStatus = turnIntakeOff()
# else:
# intakeStatus = turnIntakeOn()
# sys.sleep(300)"""
# old drive code
# elif controller.axis2.value() > 15: #forwards
# moveForwards(0.005,controller.axis2.value())
# elif controller.axis2.value() < -15: #backwards
# moveBackwards(0.005,controller.axis2.value())
# elif controller.axis1.value() < -15: #left
# turnLeft(0.005,controller.axis1.value())
# elif controller.axis1.value() > 15: #right
# turnRight(0.005,controller.axis1.value())