春ロボ 2班 2017
/
asimawari
主にオムニです。
Fork of asimawari by
atai.h
- Committer:
- yuto17320508
- Date:
- 2017-10-24
- Revision:
- 1:b15569582801
- Parent:
- 0:1787ed4e6e61
File content as of revision 1:b15569582801:
//前進の方向の定義 double fai=60;//φ //個体差で出力調整 double power_set=0.4; double power[3]; double M[3]; double MAX; double max(); double x; double y; double X; double Y; int i; int j; //ジョイスティック入力値の偏角 double sita; //関数代入用の角度調整 double sita_2; //モーターのクラス PwmOut motor[3][2]= {PwmOut(p21),PwmOut(p22), PwmOut(p23),PwmOut(p24), PwmOut(p25),PwmOut(p26) }; //モーターの初期設定 void setting() { for(i=0; i<=2; i++) { power[i]=power_set; } for(i=0; i<=2; i++) { for(j=0; j<=2; i++) { motor[i][j].period_us(100); } } } float attach_timing=0.05f;