コントローラー

Dependencies:   MyLib4 mbed

Files at this revision

API Documentation at this revision

Comitter:
kikoaac
Date:
Fri Oct 27 07:27:13 2017 +0000
Parent:
7:e972d813367d
Commit message:
offset;

Changed in this revision

MyLib.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/MyLib.lib	Wed Oct 25 10:58:25 2017 +0000
+++ b/MyLib.lib	Fri Oct 27 07:27:13 2017 +0000
@@ -1,1 +1,1 @@
-https://os.mbed.com/users/kikoaac/code/MyLib4/#26bd1b20e5c9
+https://os.mbed.com/users/kikoaac/code/MyLib4/#4a426914ea4d
--- a/main.cpp	Wed Oct 25 10:58:25 2017 +0000
+++ b/main.cpp	Fri Oct 27 07:27:13 2017 +0000
@@ -81,7 +81,7 @@
 bool ReverseL[4] = {false,true,true,false};
 bool ReverseR[4] = {true,false,true,false};
 */
-
+/*
 uint16_t MinimumRangeR[4] = {14592,41414,16128,12288};
 uint16_t MaxmumRangeR[4] = {41216,52242,61952,38144};
 uint16_t MinimumRangeL[4] = {23040,18176,11008,34303};
@@ -89,6 +89,7 @@
 
 bool ReverseL[4] = {false,true,true,false};
 bool ReverseR[4] = {true,false,true,false};
+*/
 /*
 uint16_t MinimumRangeR[4] = {1280,42240,36096,17152};
 uint16_t MaxmumRangeR[4] = {45312,52992,58624,41216};
@@ -96,15 +97,15 @@
 uint16_t MaxmumRangeL[4] = {45312,58112,59392,30976};
 */
 //2号機
-/*
-uint16_t MinimumRangeR[4] = {19900,41216,38144,17152};
-uint16_t MaxmumRangeR[4] = {43260,53248,61952,41216};
-uint16_t MinimumRangeL[4] = {21500,19400,8448,57088};
-uint16_t MaxmumRangeL[4] = {43520,38900,38400,30208};
+//17468 23308
+uint16_t MinimumRangeR[4] = {19900,41216,45056,13002};
+uint16_t MaxmumRangeR[4] = {42544,53248,60676,38312};
+uint16_t MinimumRangeL[4] = {21500,19432,10190,55588};
+uint16_t MaxmumRangeL[4] = {43520,43300,43264,30208};
 
 bool ReverseL[4] = {false,true,true,true};
 bool ReverseR[4] = {true,false,true,false};
-*/
+
 #endif
 #if CALIB
 uint16_t MinimumRangeR[4] = {0,0,0,0};
@@ -183,9 +184,10 @@
         debugLed2 = !debugLed2;
         wait(0.01);
     }
+    wait(0.5);
     dev.attach(RX, Serial::RxIrq);
     dev.putc('L');
-    timer.start();
+    timer.start();        
     ctrl.offset_();
     int count = 0;
     while(1) {