Dependents:
TrackingAntenna
tracking.h
- Committer:
- danidanko
- Date:
- 2011-05-30
- Revision:
- 0:56c11651aa8c
File content as of revision 0:56c11651aa8c:
#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();