Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pynxc/tutorial_samples/2_repeat_a.py
blob: b7c5c9996853adf9475f941b77ecbd66ca7a1511 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
DEFINE MOVE_TIME=500
DEFINE TURN_TIME=360

def main():

    a=5
    
    for repeat in range(a):
        OnFwd(OUT_AC, 75)
        Wait(MOVE_TIME)
        OnRev(OUT_C, 75)
        Wait(TURN_TIME)

    Off(OUT_AC)