Library with P, PI and PID controller

Dependents:   buttoncontrol includeair includeair Oudverslag

Changes

RevisionDateWhoCommit message
20:a9a6ffb32dbf 2015-10-29 Gerth added correcttion for the angles which are introduces bij "bevestigingslip" default tip
19:e3585d3c5a85 2015-10-29 Gerth converted floats to doubles
18:ef413d2fd0b1 2015-10-26 Gerth removed fault from pid with lowpass
17:666505754e3f 2015-10-26 Gerth added pid with low pass and moved variables error_int and error_prev and Ts to the library (so these do not have to be send to the function when calling a library)
16:57c4f4ac11e4 2015-10-23 Gerth made error_int zero if the error is whitin the allowed error to prevent controller from spooling up if pod stays stationairy.
15:a1a29db96f4f 2015-10-20 Gerth added an errorband, if the error is within this band, the signal to the motors = 0
14:2b4378bfe07a 2015-10-19 Gerth adjusted angles for controllers, now use; encoder1(pin a, pin b); encoder2 (pin b, pin a)
13:a128fd574295 2015-10-09 Gerth updatet documentation;
12:9cec66b450e0 2015-10-09 Gerth removed fault from code;
11:ef8d28e010a2 2015-10-09 Gerth removed the safety value from constructor and made it a separate function;
10:37bdb3e5f03a 2015-10-08 Gerth can now specify a safety cutoff value when constructing a controller
9:2d57152425d1 2015-10-08 Gerth made the stop function actually stop the motors;
8:3b077fc3d1ec 2015-10-08 Gerth added stop function
7:6e2cd9b0403b 2015-10-08 Gerth P-control working. CW and CCW good;
6:9addcf4d7af3 2015-10-08 Gerth reversed CW and CCW;
5:5794dbc42c3d 2015-10-06 Gerth Cleaned up code;
4:e732794d8e7f 2015-10-06 Gerth More updates to documentation;
3:8e6dacabe898 2015-10-06 Gerth Updatet documentation again;
2:a1b6930947a9 2015-10-06 Gerth Updated documentation;
1:ece12a295ce3 2015-10-06 Gerth Added a readout function for PWM signal;
0:041a12a5b315 2015-10-06 Gerth Working library with P, PI and PID controller