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: FEP_RX22 OmniPosition PID R1370 ikarashiMDC_2byte_ver omni_wheel SerialMultiByte Servo
Diff: main.cpp
- Revision:
- 8:f40325f2d182
- Parent:
- 7:778eaeae8128
- Child:
- 9:b0e2dd478db7
diff -r 778eaeae8128 -r f40325f2d182 main.cpp
--- a/main.cpp Mon Oct 10 08:17:40 2022 +0000
+++ b/main.cpp Mon Oct 10 10:45:17 2022 +0000
@@ -45,7 +45,7 @@
Servo pwm_imput1(BLDC1);//ブラシレス宣言
Servo pwm_imput2(BLDC2);
Servo pwm_imput3(BLDC3);
-// angとanglとangleの変数とクラス名がある。 気をつけよう
+// angとanglとangleの変数とクラス名がある。気をつけよう*********************重要重要***********************
uint8_t b[16];
int16_t stick[4];
int16_t trigger[4];
@@ -120,6 +120,7 @@
#else
/*ジャイロ読み取り*/
+ /*足回りのXY座標は多分使わないので無くてもよし。*/
posiX = posi.getX();
posiY = posi.getY();
posiTheta = posi.getTheta()*(180.0/M_PI);//OmniPositionライブラリが弧度法で角度をつけていたため60分法に変換