Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pynxc/tutorial_samples/6_inline.py
diff options
context:
space:
mode:
Diffstat (limited to 'pynxc/tutorial_samples/6_inline.py')
-rw-r--r--pynxc/tutorial_samples/6_inline.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/pynxc/tutorial_samples/6_inline.py b/pynxc/tutorial_samples/6_inline.py
new file mode 100644
index 0000000..7465a6d
--- /dev/null
+++ b/pynxc/tutorial_samples/6_inline.py
@@ -0,0 +1,17 @@
+def inline_turn_around():
+ OnRev(OUT_C, 75)
+ Wait(900)
+ OnFwd(OUT_AC, 75)
+
+def main():
+
+ OnFwd(OUT_AC, 75)
+ Wait(1000)
+ inline_turn_around()
+ Wait(2000)
+ inline_turn_around()
+ Wait(1000)
+ inline_turn_around()
+ Off(OUT_AC)
+
+