Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add extern C for use in c++ progs

  • Loading branch information...
commit d0243fd655d43090a11e89c854f8e623098a564f 1 parent 7084fed
@nzjrs authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 pid.h
View
8 pid.h
@@ -8,6 +8,10 @@
#ifndef PID_H_
#define PID_H_
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef struct {
float kp;
float ki;
@@ -44,4 +48,8 @@ float pid_calculate (PID_t *pid,
float val,
float dt);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* PID_H_ */
Please sign in to comment.
Something went wrong with that request. Please try again.