Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions PID.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#ifndef PID_CONTROLLER_H
#define PID_CONTROLLER_H

#ifdef __cplusplus
extern "C" {
#endif

typedef struct {

/* Controller gains */
Expand Down Expand Up @@ -36,4 +40,8 @@ typedef struct {
void PIDController_Init(PIDController *pid);
float PIDController_Update(PIDController *pid, float setpoint, float measurement);

#ifdef __cplusplus
}
#endif

#endif