malam minggu ngakak

Dependencies:   DigitDisplay Motor PID Ping mbed millis

Fork of DagonFly__RoadToJapan_13Mei by KRAI 2017

Revision:
32:581d4a2373f0
Parent:
31:d5cbda07fd95
Child:
33:69d266bc3fe9
diff -r d5cbda07fd95 -r 581d4a2373f0 main.cpp
--- a/main.cpp	Mon Feb 13 12:03:37 2017 +0000
+++ b/main.cpp	Mon Feb 13 13:49:50 2017 +0000
@@ -54,7 +54,7 @@
 #define PERPINDAHAN 1       // Perpindahan ke kanan dan kiri
 
 // Variable Atas
-double speed, speed2, maxSpeed = 0.8, minSpeed = 0;
+double speed, speed2, maxSpeed = 0.95, minSpeed = 0;
 double kpA=0.6757, kdA=0.6757, kiA=0.00006757;
 double p,i,d;
 double p2,i2,d2;
@@ -172,7 +172,7 @@
         // Motor Launcher
         caseJoystick = 5;
     }
-    else if (joystick.R2_click && (target_rpm2 < 14)){
+    else if (joystick.R2_click && (target_rpm2 < 20)){
         // Target Pulse PID ++ Motor Depan
          caseJoystick = 6;
     }  
@@ -180,7 +180,7 @@
         // Target Pulse PID -- Motor Depan
          caseJoystick = 7;
     }
-    else if (joystick.R3_click && (target_rpm < 14)){
+    else if (joystick.R3_click && (target_rpm < 20  )){
         // Target Pulse PID ++ Motor Belakang
          caseJoystick = 8;
     }
@@ -297,7 +297,7 @@
         }
         case (8) : 
         {
-            // Target Pulse PID ++ Motor Belakang
+            // Target Pulse PID ++ Motor Belakang=
             target_rpm = target_rpm++;
             break;
         }