/** * * * This may be used as an "uber-include" at the beginning of a c file to include * the most common C libs without having a cluttered list. This is technically * bad practice and you should include only the headers necessary for your * program to operate. However, this can save time while quickly prototyping and * remains for backwards compatability. * * @addtogroup Useful_Includes * @ingroup Deprecated * @{ */ #ifndef RC_USEFUL_INCLUDES #define RC_USEFUL_INCLUDES #define _GNU_SOURCE #include #include #include #include #include #include #include #include #include #include #include // for uint8_t types etc #include #include // usleep, nanosleep #include // atan2 and fabs #include // capture ctrl-c #include // multi-threading #include // buttons #include // interrupt events #include // mmap for accessing eQep #include // udp socket #include // udp socket #include #include // udp socket #include // for isprint() #include // for read timeout // Useful Constants #ifndef DEG_TO_RAD #define DEG_TO_RAD 0.0174532925199 #endif #ifndef RAD_TO_DEG #define RAD_TO_DEG 57.295779513 #endif #ifndef PI #define PI M_PI #endif #ifndef TWO_PI #define TWO_PI (2.0 * M_PI) #endif // Useful Macros #ifndef ARRAY_SIZE #define ARRAY_SIZE(array) sizeof(array)/sizeof(array[0]) #endif #ifndef min #define min(a, b) ((a < b) ? a : b) #endif #endif // RC_USEFUL_INCLUDES ///@} end group Deprecated