summaryrefslogtreecommitdiffstats
path: root/src/auto.c
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2016-02-10 14:28:16 -0500
committerClyne Sullivan <tullivan99@gmail.com>2016-02-10 14:28:16 -0500
commitc3b516ee1f6e0d317e629ba95abf4ac0cd94f534 (patch)
tree63e615656c03137a57617233fa4a02cf19a3e0a2 /src/auto.c
parent476a0dbf41e14458c52a5cd2fe5b4c050a6c6551 (diff)
revised everything
Diffstat (limited to 'src/auto.c')
-rw-r--r--src/auto.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/auto.c b/src/auto.c
deleted file mode 100644
index c26bfd9..0000000
--- a/src/auto.c
+++ /dev/null
@@ -1,29 +0,0 @@
-#include <main.h>
-#include <zephyr.h>
-
-//#define TARGET_RPM 1700
-
-/*void autonomous(){
- static double cl,cr,ca;
- static char speed;
-
- speed = 30;
-
- do{
- speed += 10;
- zMotorSet("Left cannon",-speed);
- zMotorSet("Right cannon",speed);
- delay(800);
- cl = zMotorIMEGetVelocity("Left cannon") / 16.3333125L * 9;
- cr = -zMotorIMEGetVelocity("Right cannon") / 16.3333125L * 9;
- ca = (cl + cr) / 2;
- }while(ca < TARGET_RPM);
-
- zMotorSet("Misc",127);
- delay(900);
- zMotorSet("Misc",-127);
- delay(900);
- zMotorSet("Misc",0);
-
- motorStopAll();
-}*/