-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added coordinate conversion for global / local conversion
- Loading branch information
1 parent
b3ed0ac
commit 63900c2
Showing
3 changed files
with
89 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,22 @@ | ||
#ifndef QGCGEO_H | ||
#define QGCGEO_H | ||
|
||
#define DEG2RAD (M_PI/180.0) | ||
|
||
/* Safeguard for systems lacking sincos (e.g. Mac OS X Leopard) */ | ||
#ifndef sincos | ||
#define sincos(th,x,y) { (*(x))=sin(th); (*(y))=cos(th); } | ||
#endif | ||
|
||
|
||
/** | ||
* Converting from latitude / longitude to tangent on earth surface | ||
* @link http://psas.pdx.edu/CoordinateSystem/Latitude_to_LocalTangent.pdf | ||
* @link http://dspace.dsto.defence.gov.au/dspace/bitstream/1947/3538/1/DSTO-TN-0432.pdf | ||
*/ | ||
void LatLonToENU(double lat, double lon, double alt, double originLat, double originLon, double originAlt, double* x, double* y, double* z) | ||
{ | ||
//void LatLonToENU(double lat, double lon, double alt, double originLat, double originLon, double originAlt, double* x, double* y, double* z) | ||
//{ | ||
|
||
} | ||
//} | ||
|
||
#endif // QGCGEO_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters