修正済みby皆川
Dependencies: mbed Servo cansat_integrated_2 BMP180
Dependents: cansat_integrated_2
direction.h
- Committer:
- tsubasa_nakajima
- Date:
- 2021-11-05
- Revision:
- 12:79946f960100
- Parent:
- 8:7209c810309d
File content as of revision 12:79946f960100:
#include "mbed.h" #include "getGPS.h" #include "Movement.h" #include "Servo.h" class direction { private: int s; float x_0 ,y_0; //中間地点の座標(未定) float x_01,y_01; //ゴール地点の座標(未定) float x_1 ,y_1; //現在地 float x_2 ,y_2; //20秒前の現在地 float theta; //CanSatから見た目的地の角度 float d,d1,d2; //dはCanSatの20秒間の移動距離,d1はCanSatと中間地点の距離、d2はゴール地点との距離(単位はm) public: //歩行 void walk(); };