Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pynxc/tutorial_samples/8_PID.py
diff options
context:
space:
mode:
Diffstat (limited to 'pynxc/tutorial_samples/8_PID.py')
-rw-r--r--pynxc/tutorial_samples/8_PID.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/pynxc/tutorial_samples/8_PID.py b/pynxc/tutorial_samples/8_PID.py
new file mode 100644
index 0000000..a4c09a2
--- /dev/null
+++ b/pynxc/tutorial_samples/8_PID.py
@@ -0,0 +1,8 @@
+DEFINE P=40
+DEFINE I=40
+DEFINE D=70
+
+def main():
+ RotateMotorPID(OUT_A, 100, 180, P, I, D)
+ Wait(2000)
+