2015_robocon_bteam / Mbed 2 deprecated 2015robot_main

Dependencies:   PID QEI mbed

Fork of 2015robot_main by Naoto Deguchi

Files at this revision

API Documentation at this revision

Comitter:
unicore32
Date:
Mon Sep 07 05:35:55 2015 +0000
Parent:
6:a350810d2071
Commit message:
??????(PIC?send????????w)

Changed in this revision

main_ps3.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main_ps3.cpp	Mon Sep 07 05:10:54 2015 +0000
+++ b/main_ps3.cpp	Mon Sep 07 05:35:55 2015 +0000
@@ -20,7 +20,6 @@
     initializeMotors();
     initializeControllers();
     //RS485.putc(10);
-    sendData(5, 10);
     while(1) {
         /*if(circle) Emergency_toggle();
         else if(triangle){
@@ -78,8 +77,8 @@
             }
         } 
         else if(down) step=7;
-        else if(right) sendData(5, 11);//RS485.putc(11);
-        else if(left) sendData(1, 10);//RS485.putc(10);
+        else if(right) sendData(5, 15);//RS485.putc(11);
+        else if(left) sendData(1, 31);//RS485.putc(10);
         /*else if(right) {
             if(edge_right){
                 edge_right=0;