diff options
Diffstat (limited to 'src/auto.c')
-rw-r--r-- | src/auto.c | 29 |
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();
-}*/
|