Mami Yokokawa / setting

Dependents:   Aigamozu_Robot_March

Files at this revision

API Documentation at this revision

Comitter:
s1200058
Date:
Fri Jan 22 18:59:33 2016 +0000
Parent:
0:2299c333a9b4
Child:
2:b03a80d9eade
Commit message:
ver3 0123

Changed in this revision

setting.cpp Show annotated file Show diff for this revision Revisions of this file
setting.h Show annotated file Show diff for this revision Revisions of this file
--- a/setting.cpp	Wed Jan 20 15:48:38 2016 +0000
+++ b/setting.cpp	Fri Jan 22 18:59:33 2016 +0000
@@ -24,8 +24,8 @@
 
 void setting::setGpsDistance(void){
     
-    gpsDis.x = (gpsPoint.x - pastGpsPoint.x) * 111120;
-    gpsDis.y = (gpsPoint.y - pastGpsPoint.y) * dis * 1000;
+    gpsDis.x = gpsPoint.x - pastGpsPoint.x;
+    gpsDis.y = gpsPoint.y - pastGpsPoint.y;
     
 }
 
--- a/setting.h	Wed Jan 20 15:48:38 2016 +0000
+++ b/setting.h	Fri Jan 22 18:59:33 2016 +0000
@@ -33,7 +33,7 @@
     void setGpsDistance();
     
     int flag, changeFlag;
-    double gpsAngle, pastGpsAngle, difAngle, dis;
+    double gpsAngle, pastGpsAngle, difAngle;
     
     vector2D gpsPoint, pastGpsPoint, gpsDis, newDis;
     vector3D agzCmp, agzAcc, agzGyr, caribCmp, caribAcc, caribGyr, pastGyr;