paling baru

Dependencies:   DigitDisplay Motor PID Ping mbed millis

Fork of MainProgram_BaseBaru_fix_omni_11April by KRAI 2017

Revision:
13:8ab42383a2ca
Parent:
12:e07c59c28c29
Child:
14:6d389e99981c
--- a/main.cpp	Sat Dec 03 05:43:10 2016 +0000
+++ b/main.cpp	Fri Dec 09 10:27:56 2016 +0000
@@ -26,7 +26,11 @@
 /*                                                                          */
 /*  Tombol silang   => Kembali keposisi Awal                                */
 /*  Tombol segitiga => Aktif motor Launcher                                 */
-/*  Tombol kotak    => Aktif servo Launcher                                 */
+/*  Tombol lingkaran=> Aktif servo Launcher                                 */
+/*  Tombol L3       => PWM Launcher dikurangin                              */
+/*  Tombol R3       => PWM Launcher ditambahin                                                                        */
+/*                                                                          */
+/*                                                                          */
 /*                                                                          */
 /****************************************************************************/
 
@@ -510,11 +514,11 @@
         speedL = speedL + 0.01;}
     if (joystick.L3_click and speedL > 0.1){
         speedL = speedL - 0.01;} 
-   /* if (joystick.R2>0 and speedB < 0.8){
-        speedB = speedB + 0.01;}
-    if (joystick.L2>0 and speedB > 0.1){
-        speedB = speedB - 0.01;}*/    
-    pc.printf("Pwm depan = %.3f\n ", speedL);
+    if (joystick.R2_click and speedB < 0.8 ){
+            speedB = speedB + 0.01;}  
+    if (joystick.L2_click and speedB > 0.1 ){
+        speedB = speedB - 0.01;}    
+    pc.printf("Pwm depan = %.3f\t  Pwm belakang = %.3f\n", speedL, speedB);
 }