Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pynxc/tutorial_samples/2_repeat_a.py
diff options
context:
space:
mode:
Diffstat (limited to 'pynxc/tutorial_samples/2_repeat_a.py')
-rw-r--r--pynxc/tutorial_samples/2_repeat_a.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/pynxc/tutorial_samples/2_repeat_a.py b/pynxc/tutorial_samples/2_repeat_a.py
new file mode 100644
index 0000000..b7c5c99
--- /dev/null
+++ b/pynxc/tutorial_samples/2_repeat_a.py
@@ -0,0 +1,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)
+