3/19

Dependencies:   mbed move4wheel2 EC CruizCore_R1370P

Committer:
yuki0701
Date:
Tue Mar 19 02:30:34 2019 +0000
Revision:
11:9db93bce4eef
Parent:
10:c741191360de
a

Who changed what in which revision?

UserRevisionLine numberNew contents of line
la00noix 0:c61c6e4775ca 1 #ifndef HARUROBO2019_MOVEMENT
la00noix 0:c61c6e4775ca 2 #define HARUROBO2019_MOVEMENT
la00noix 0:c61c6e4775ca 3
la00noix 8:2ba338b4590e 4 extern char can_ashileddata[2];
la00noix 0:c61c6e4775ca 5
la00noix 0:c61c6e4775ca 6 extern int16_t m1,m2,m3,m4;
la00noix 0:c61c6e4775ca 7
la00noix 9:7667dcfc7ce5 8 extern int flag;
la00noix 9:7667dcfc7ce5 9
la00noix 0:c61c6e4775ca 10 void UserLoopSetting_sensor();
la00noix 0:c61c6e4775ca 11
yuki0701 10:c741191360de 12 void UserLoopSetting_enc_right();
yuki0701 10:c741191360de 13
yuki0701 10:c741191360de 14 void UserLoopSetting_enc_left();
yuki0701 10:c741191360de 15
la00noix 0:c61c6e4775ca 16 void calOmega();
la00noix 0:c61c6e4775ca 17
la00noix 0:c61c6e4775ca 18 void output(double FL,double BL,double BR,double FR);
la00noix 0:c61c6e4775ca 19
la00noix 0:c61c6e4775ca 20 void base(double FL,double BL,double BR,double FR,double Max);
la00noix 0:c61c6e4775ca 21
la00noix 0:c61c6e4775ca 22 void ashi_led();
la00noix 0:c61c6e4775ca 23
la00noix 0:c61c6e4775ca 24 void calc_gyro();
la00noix 0:c61c6e4775ca 25
la00noix 0:c61c6e4775ca 26 void calc_xy_enc();
la00noix 0:c61c6e4775ca 27
la00noix 0:c61c6e4775ca 28 void set_cond(int t, int px, double bx, int py, double by);
la00noix 0:c61c6e4775ca 29
la00noix 0:c61c6e4775ca 30 void calc_xy_usw(double tgt_angle);
la00noix 0:c61c6e4775ca 31
la00noix 0:c61c6e4775ca 32 void calc_xy(double tgt_angle, double u, double v);
la00noix 0:c61c6e4775ca 33
la00noix 9:7667dcfc7ce5 34 void enc_correction(int x_select,int y_select);
la00noix 9:7667dcfc7ce5 35
la00noix 0:c61c6e4775ca 36 void purecurve(int type,double u, double v, //正面を変えずに円弧or楕円を描いて曲がる
la00noix 0:c61c6e4775ca 37 double point_x1,double point_y1,
la00noix 0:c61c6e4775ca 38 double point_x2,double point_y2,
la00noix 0:c61c6e4775ca 39 int theta,
la00noix 0:c61c6e4775ca 40 double speed,
la00noix 0:c61c6e4775ca 41 double q_p,double q_d,
la00noix 0:c61c6e4775ca 42 double r_p,double r_d,
la00noix 0:c61c6e4775ca 43 double r_out_max,
la00noix 0:c61c6e4775ca 44 double target_angle);
la00noix 6:26724c287387 45
la00noix 0:c61c6e4775ca 46 void gogo_straight(double u, double v, double x1_point,double y1_point, //直線運動プログラム
la00noix 0:c61c6e4775ca 47 double x2_point,double y2_point,
la00noix 0:c61c6e4775ca 48 double speed1,double speed2,
la00noix 0:c61c6e4775ca 49 double q_p,double q_d,
la00noix 0:c61c6e4775ca 50 double r_p,double r_d,
la00noix 0:c61c6e4775ca 51 double r_out_max,
la00noix 0:c61c6e4775ca 52 double target_angle);
la00noix 0:c61c6e4775ca 53
yuki0701 11:9db93bce4eef 54 void pos_correction(double tgt_x, double tgt_y, double tgt_angle, double u, double v, double R);
la00noix 0:c61c6e4775ca 55
la00noix 0:c61c6e4775ca 56 #endif