主にオムニです。

Dependencies:   EC mbed HCSR04

Fork of asimawari by yuto kawamura

atai.h

Committer:
yuto17320508
Date:
2017-10-26
Revision:
3:73625a6c9750
Parent:
1:b15569582801

File content as of revision 3:73625a6c9750:



//前進の方向の定義
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;