UAV/UAS Tracking Antenna System

Dependencies:   mbed HMC6352

Committer:
danidanko
Date:
Mon May 30 10:42:16 2011 +0000
Revision:
0:a1f6917f071e
v1.0

Who changed what in which revision?

UserRevisionLine numberNew contents of line
danidanko 0:a1f6917f071e 1 #define PI 3.14159274
danidanko 0:a1f6917f071e 2 #define ON 1
danidanko 0:a1f6917f071e 3 #define OFF 0
danidanko 0:a1f6917f071e 4 typedef unsigned char uchar;
danidanko 0:a1f6917f071e 5
danidanko 0:a1f6917f071e 6
danidanko 0:a1f6917f071e 7 float torads(float deg);
danidanko 0:a1f6917f071e 8 float todegs(float rad);
danidanko 0:a1f6917f071e 9
danidanko 0:a1f6917f071e 10 //Gets string from groundStation and converts to Lat Lon Alt
danidanko 0:a1f6917f071e 11 void getlla(float& p_lat, float& p_lon, float& p_alt, float& g_lat, float& g_lon, float& g_alot);
danidanko 0:a1f6917f071e 12
danidanko 0:a1f6917f071e 13 //converts lat lon alt to ECEF earth centered earth fixed coordinates
danidanko 0:a1f6917f071e 14 void lla2ecef(float lat, float lon, float alt, float& x, float& y, float& z);
danidanko 0:a1f6917f071e 15
danidanko 0:a1f6917f071e 16 //converts 4 bytes to float
danidanko 0:a1f6917f071e 17 float tofloat(uchar b0, uchar b1, uchar b2, uchar b3);
danidanko 0:a1f6917f071e 18
danidanko 0:a1f6917f071e 19 //this is a testing function it allows me to input a puse width in uS and output it to the servo(s)
danidanko 0:a1f6917f071e 20 // Allows me to get y = Mx + B.. it's not used in the main program but is usefull
danidanko 0:a1f6917f071e 21 void servo_calib();