kourobo2019 teamA

Dependencies:   Controller ikarashiMDC

Files at this revision

API Documentation at this revision

Comitter:
piroro4560
Date:
Sat Mar 30 10:34:08 2019 +0000
Parent:
3:2b36c8428d85
Commit message:
kourobo Ateam

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 2b36c8428d85 -r 94f943530940 main.cpp
--- a/main.cpp	Fri Mar 29 11:52:51 2019 +0000
+++ b/main.cpp	Sat Mar 30 10:34:08 2019 +0000
@@ -2,7 +2,7 @@
 #include "controller.h"
 #include "ikarashiMDC.h"
 
-Controller pad(PA_0, PA_1, 208);
+Controller pad(PA_0, PA_1, );
 Serial serial(PC_10, PC_11, 115200);
 Serial PC(USBTX,USBRX,115200);
 DigitalOut serialcontrol(D2);
@@ -20,12 +20,12 @@
     double value[4], rad[2], dis[2];
     double spV = 0.3;/////////speed Vertical
     double spS = 0.3;/////////speed Side
-    double spT = 0.2;/////////speed Turn
-    double Fm = 1.25;/////////Front magnification
-    double Bm = 0.9;//////////Back magnification
-    double Sm = 1.13;/////////Side magnification
-    double acc = 22;//////////acceleration
-    double dec = 4;///////////deceleration
+    double spT = 0.15;////////speed Turn
+    double Fm = 1.0;//////////Front magnification
+    double Bm = 1.0;//////////Back magnification
+    double Sm = 1.0///////////Side magnification
+    double acc = 25;//////////acceleration
+    double dec = 5;///////////deceleration
     ikarashi[0].braking = true;
     while (1) {
         //button stick trigger//