Library with P, PI and PID controller
Dependents: buttoncontrol includeair includeair Oudverslag
Diff: controlandadjust.cpp
- Revision:
- 11:ef8d28e010a2
- Parent:
- 10:37bdb3e5f03a
- Child:
- 12:9cec66b450e0
--- a/controlandadjust.cpp Thu Oct 08 14:19:50 2015 +0000 +++ b/controlandadjust.cpp Fri Oct 09 13:05:02 2015 +0000 @@ -17,10 +17,7 @@ -controlandadjust::controlandadjust(float safety_cutoff) -{ - maxvaluepwm=safety_cutoff; -} +controlandadjust::controlandadjust(void){} void controlandadjust::verwerksignaal(float signaal1,float signaal2) { @@ -109,4 +106,6 @@ { motor1_speed.write(0); motor2_speed.write(0); -} \ No newline at end of file +} +void controlandadjust::cutoff(float maxvalue) +{float maxvaluepwm=maxvalue;} \ No newline at end of file