-
Notifications
You must be signed in to change notification settings - Fork 1
/
noah2.py
30 lines (25 loc) · 1.17 KB
/
noah2.py
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
from base_robot import *
# Add good comments, such as what the mission is supposed to do,
# how to align the robot in home, any initial starting instructions,
# such as how it should be loaded with anything, arm positions, etc.
# When we run this program from the master program, we will cal(l this
# "Run(br)" method.
def Run(br: BaseRobot):
# Your mission code goes here, step-by-step
# It MUST be indented just like the lines below
br.driveForDistance(525, speedPct=100, then=Stop.NONE)
br.driveArcDist(radius=320, dist=200, then=Stop.NONE)
br.driveForDistance(90)
br.moveLeftAttachmentMotorForMillis(millis=500, speedPct=100)
br.waitForMillis(1000)
# br.moveLeftAttachmentMotorForDegrees(400)
br.moveLeftAttachmentMotorForMillis(millis=500, speedPct=-100)
br.driveArcDist(radius=500, dist=-900)
# If running this program directly (not from the master program), this is
# how we know it is running directly. In which case, this method will
# create a BaseRobot and run the Run(br) method above.
# In other words, keep these three lines at the bottom of your code and
# everything will be fine.
if __name__ == "__main__":
br = BaseRobot()
Run(br)