Dependents:
TrackingAntenna
Revision 0:56c11651aa8c, committed 2011-05-30
- Comitter:
- danidanko
- Date:
- Mon May 30 21:31:01 2011 +0000
- Commit message:
Changed in this revision
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();