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.
Diff: tracking.h
- Revision:
- 0:56c11651aa8c
diff -r 000000000000 -r 56c11651aa8c tracking.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tracking.h Mon May 30 21:31:01 2011 +0000 @@ -0,0 +1,21 @@ +#define PI 3.14159274 +#define ON 1 +#define OFF 0 +typedef unsigned char uchar; + + +float torads(float deg); +float todegs(float rad); + +//Gets string from groundStation and converts to Lat Lon Alt +void getlla(float& p_lat, float& p_lon, float& p_alt, float& g_lat, float& g_lon, float& g_alot); + +//converts lat lon alt to ECEF earth centered earth fixed coordinates +void lla2ecef(float lat, float lon, float alt, float& x, float& y, float& z); + +//converts 4 bytes to float +float tofloat(uchar b0, uchar b1, uchar b2, uchar b3); + +//this is a testing function it allows me to input a puse width in uS and output it to the servo(s) +// Allows me to get y = Mx + B.. it's not used in the main program but is usefull +void servo_calib();