Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pynxc/tutorial_samples/6_inline2.py
blob: 0447f1157de75f8183400371464143cc613f8f2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
def inline_turn_around(pwr,turntime):

    OnRev(OUT_C, pwr)
    Wait(turntime)
    OnFwd(OUT_AC, pwr)

def main():

    OnFwd(OUT_AC, 75)
    Wait(1000)
    inline_turn_around(75, 2000)
    Wait(2000)
    inline_turn_around(75, 500)
    Wait(1000)
    inline_turn_around(75, 3000)
    Off(OUT_AC)