Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed Servo SDFileSystem
Diff: Config.h
- Revision:
- 27:1be1f25be449
- Parent:
- 25:30966ed7f7e8
- Child:
- 28:ae857c247fbd
diff -r 353a80179346 -r 1be1f25be449 Config.h --- a/Config.h Thu Sep 10 18:15:16 2015 +0000 +++ b/Config.h Fri Sep 11 00:11:31 2015 +0000 @@ -4,6 +4,7 @@ #include <vector> #include <list> #include <sstream> +#include <math.h> #include "mbed.h" #include "Servo.h" #include "SDFileSystem.h" @@ -12,6 +13,8 @@ #define MAX_IMU_SIZE 29 #define MAX_TASK_SIZE 5 +#define DEG2RAD_RATIO 0.0174532925199433 +#define EARTH_RADIUS 6371000 extern string IMU_Y; extern string IMU_P; @@ -19,7 +22,7 @@ extern string GPS_Quality; extern string GPS_UTC; extern string GPS_Latitude; -extern string GPS_Longtitude; +extern string GPS_Longitude; extern string GPS_Altitude; extern string GPS_Num_Satellite; extern string GPS_HDOP; @@ -35,7 +38,7 @@ extern double D_GPS_Quality; extern double D_GPS_UTC; extern double D_GPS_Latitude; -extern double D_GPS_Longtitude; +extern double D_GPS_Longitude; extern double D_GPS_Altitude; extern double D_GPS_Num_Satellite; extern double D_GPS_HDOP; @@ -45,7 +48,7 @@ extern double D_GPS_VelocityKnot; extern double D_GPS_VelocityKph; -extern double Longtitude_Path[MAX_TASK_SIZE]; +extern double Longitude_Path[MAX_TASK_SIZE]; extern double Latitude_Path[MAX_TASK_SIZE]; extern Serial pc; @@ -53,4 +56,5 @@ string decodeCommandGET(string cmd); string decodeCommandSET(string cmd); vector<string> split(const string &s, char delim); -double getDistance(double cur_Latitude, double cur_Longtitude, double dest_Latitude, double dest_Longtitude); \ No newline at end of file +double getDistance(); +double Deg2Rad(double degree); \ No newline at end of file