Just a header file containing structs and constants etc. that are used across my libraries. Prevents multiple declarations.
Utils.h
- Committer:
- eencae
- Date:
- 2015-05-25
- Revision:
- 0:a088aaa1c8e2
- Child:
- 1:4d64faffb516
File content as of revision 0:a088aaa1c8e2:
#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