PID Library Brought in from the PID Arduino Library
Dependents: Basic_PID wheelchaircontrol wheelchaircontrolRosCom wheelchaircontrol ... more
Diff: PID.cpp
- Revision:
- 2:60801ab3cbf9
- Parent:
- 1:37c3ab46d475
- Child:
- 3:62f1e316f15b
--- a/PID.cpp Tue Aug 28 23:24:01 2018 +0000 +++ b/PID.cpp Fri Aug 31 17:09:28 2018 +0000 @@ -1,7 +1,7 @@ #include "PID.h" #include "mbed.h" -PID::PID(double* Input, double* Output, double* Setpoint, double Kp, double Ki, double Kd, int POn, int ControllerDirection){ +PID::PID(volatile double* Input, volatile double* Output, volatile double* Setpoint, double Kp, double Ki, double Kd, int POn, int ControllerDirection){ PIDtimer.start(); PIDtimer.reset(); myOutput = Output;