Robot Control Library
Useful_Includes

Description

<rc_usefulincludes.h>

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.

Macros

#define _GNU_SOURCE
 
#define DEG_TO_RAD   0.0174532925199
 
#define RAD_TO_DEG   57.295779513
 
#define PI   M_PI
 
#define TWO_PI   (2.0 * M_PI)
 
#define ARRAY_SIZE(array)   sizeof(array)/sizeof(array[0])
 
#define min(a, b)   ((a < b) ? a : b)
 

Macro Definition Documentation

◆ _GNU_SOURCE

#define _GNU_SOURCE

◆ DEG_TO_RAD

#define DEG_TO_RAD   0.0174532925199

◆ RAD_TO_DEG

#define RAD_TO_DEG   57.295779513

◆ PI

#define PI   M_PI

◆ TWO_PI

#define TWO_PI   (2.0 * M_PI)

◆ ARRAY_SIZE

#define ARRAY_SIZE (   array)    sizeof(array)/sizeof(array[0])

◆ min

#define min (   a,
 
)    ((a < b) ? a : b)