Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: HOSOKIkikou FEP_RX22 QEI R1370 ikarashiMDC_2byte_ver mbed 2022_NHK_B_canTR PID SEKIkikou
Revision 10:9623a4b1f2b1, committed 2022-10-13
- 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]);