kouhei umezawa / Mbed 2 deprecated 2022_NHK_B_UK

Dependencies:   HOSOKIkikou FEP_RX22 QEI R1370 ikarashiMDC_2byte_ver mbed 2022_NHK_B_canTR PID SEKIkikou

Files at this revision

API Documentation at this revision

Comitter:
umekou
Date:
Thu Oct 13 03:22:30 2022 +0000
Parent:
9:88f6351221ed
Child:
11:5697197abb4c
Commit message:
change seki lift motorspeed

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Wed Oct 12 16:08:50 2022 +0000
+++ b/main.cpp	Thu Oct 13 03:22:30 2022 +0000
@@ -125,19 +125,24 @@
             motorSpeed[15]=0;
         }
         
+        //関機構
         
         if(b[7]==1){
-            seki.runAll(0.1,0.3,-0.3);
+            seki.runAll(0.1,0.3,-0.2);
         }else{
-            seki.runAll(-0.8,0.3,0.3);
+            seki.runAll(-0.8,0.3,0.1);
         }
         
+        //モータースピード設定
+        
         for(int i=0; i < 4; i++){
             motor[i].setSpeed(motorSpeed[i+8]*0.8);
         }
         
         motor[7].setSpeed(motorSpeed[15]);
         
+        //以下デバッグ用pc.printf
+        
         pc.printf("|wheel:  ");
         for(int i=8; i < 12; i++){
             pc.printf("%.2f  ",motorSpeed[i]);