2015/08/14

Dependencies:   VNH5019

Dependents:   Cansat_program4_1

Fork of cansat by Mami Yokokawa

Revision:
1:6a034792e059
Parent:
0:3f50511c1c1f
Child:
2:0f76226be922
--- a/cansat.h	Sat Jul 11 06:35:44 2015 +0000
+++ b/cansat.h	Thu Jul 16 07:56:54 2015 +0000
@@ -7,6 +7,9 @@
 #include "mbed.h"
 
 
+
+const int distance_threshold[2]={0.1,0.5}
+
 class CanSat{
     public:
         //ロボットとターゲットの方角からロボットの動きを決める
@@ -25,6 +28,8 @@
     private:
         //モータ
         //VNH5019 _agzSheild;
+        //ロボットのスピード:32,64,128の3つ?
+        int speed;
         //ロボットとターゲットの座標(緯度と経度)を表す
         double robot_x,robot_y,target_x,target_y;
         //ロボットとターゲットの方角を表す。北を1として北東:2、東:3、南東4のように1~8の値を持つ