Just a header file containing structs and constants etc. that are used across my libraries. Prevents multiple declarations.

Dependents:   Leg

Revision:
0:a088aaa1c8e2
Child:
1:4d64faffb516
diff -r 000000000000 -r a088aaa1c8e2 Utils.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Utils.h	Mon May 25 13:48:40 2015 +0000
@@ -0,0 +1,27 @@
+#ifndef UTILS_H
+#define UTILS_H
+
+// CONSTANTS
+
+// used to convert RADIANS to DEGREES
+#define RAD2DEG 57.2957795
+#define PI 3.1415926536
+
+// STRUCTS
+
+// struct used to store coordinates in 3D space
+typedef struct vector_t vector_t;
+struct vector_t {
+    float x;
+    float y;
+    float z;
+};
+
+typedef struct joint_angles_t joint_angles_t;
+struct joint_angles_t {
+    float coxa_angle;
+    float femur_angle;
+    float tibia_angle;
+};
+
+#endif
\ No newline at end of file