2015/08/11
Dependents: Cansat_program3 Cansat_program4
Fork of CanSat_aoki by
Diff: cansat.h
- Revision:
- 6:601cac49d4b1
- Parent:
- 5:534a54a44b22
diff -r 534a54a44b22 -r 601cac49d4b1 cansat.h --- a/cansat.h Mon Aug 10 10:01:15 2015 +0000 +++ b/cansat.h Mon Aug 10 18:22:25 2015 +0000 @@ -68,6 +68,7 @@ void set_speed(int new_speed); void set_robot_angle(int robot_angle); void set_target_angle(int target_angle); + void set_target(double x, double y); private: //モータ @@ -77,7 +78,7 @@ //ロボットとターゲットの座標(緯度と経度)を表す double robot_x,robot_y; double robotK_x,robotK_y;//kalman filter - double target_x,target_y; + double target_x, target_y; //ロボットとターゲットの方角を表す。北を0として北東:1、東:1、南東3のように0~7の値を持つ int robot_angle,target_angle; //ジャイロ