diff --git a/PID.h b/PID.h index 5a5c39d..c2f8a82 100644 --- a/PID.h +++ b/PID.h @@ -1,6 +1,10 @@ #ifndef PID_CONTROLLER_H #define PID_CONTROLLER_H +#ifdef __cplusplus + extern "C" { +#endif + typedef struct { /* Controller gains */ @@ -36,4 +40,8 @@ typedef struct { void PIDController_Init(PIDController *pid); float PIDController_Update(PIDController *pid, float setpoint, float measurement); +#ifdef __cplusplus +} +#endif + #endif