Library with P, PI and PID controller

Dependents:   buttoncontrol includeair includeair Oudverslag

Revisions of controlandadjust.cpp

Revision Date Message Actions
20:a9a6ffb32dbf 2015-10-29 added correcttion for the angles which are introduces bij "bevestigingslip" File  Diff  Annotate
19:e3585d3c5a85 2015-10-29 converted floats to doubles File  Diff  Annotate
18:ef413d2fd0b1 2015-10-26 removed fault from pid with lowpass File  Diff  Annotate
17:666505754e3f 2015-10-26 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) File  Diff  Annotate
16:57c4f4ac11e4 2015-10-23 made error_int zero if the error is whitin the allowed error to prevent controller from spooling up if pod stays stationairy. File  Diff  Annotate
15:a1a29db96f4f 2015-10-20 added an errorband, if the error is within this band, the signal to the motors = 0 File  Diff  Annotate
14:2b4378bfe07a 2015-10-19 adjusted angles for controllers, now use; encoder1(pin a, pin b); encoder2 (pin b, pin a) File  Diff  Annotate
12:9cec66b450e0 2015-10-09 removed fault from code; File  Diff  Annotate
11:ef8d28e010a2 2015-10-09 removed the safety value from constructor and made it a separate function; File  Diff  Annotate
10:37bdb3e5f03a 2015-10-08 can now specify a safety cutoff value when constructing a controller File  Diff  Annotate
9:2d57152425d1 2015-10-08 made the stop function actually stop the motors; File  Diff  Annotate
8:3b077fc3d1ec 2015-10-08 added stop function File  Diff  Annotate
7:6e2cd9b0403b 2015-10-08 P-control working. CW and CCW good; File  Diff  Annotate
6:9addcf4d7af3 2015-10-08 reversed CW and CCW; File  Diff  Annotate
5:5794dbc42c3d 2015-10-06 Cleaned up code; File  Diff  Annotate
1:ece12a295ce3 2015-10-06 Added a readout function for PWM signal; File  Diff  Annotate
0:041a12a5b315 2015-10-06 Working library with P, PI and PID controller File  Diff  Annotate