Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: 7_20_17_FSG_ 7_21_17_FSG 7_26_17_FSG
Fork of Controller by
Diff: controller.cpp
- Revision:
- 1:1cc8a8347f22
- Parent:
- 0:2566234da01a
- Child:
- 2:5655b65e3a86
--- a/controller.cpp Thu Apr 27 13:16:33 2017 +0000 +++ b/controller.cpp Fri Jun 09 17:32:04 2017 +0000 @@ -35,7 +35,7 @@ void PositionController::writeSetPoint(float cmd) { //33mm and 400mm are the safe allowable limits that the piston can go to - _setPoint = clamp<float>(cmd, 33.0, 400.0); + _setPoint = clamp<float>(cmd, 50.0, 440.0); //changed 400 to 500 on 6/5/17 //33 to 50 } float PositionController::getOutput() @@ -84,4 +84,4 @@ { _Dgain = gain; pc().printf("\n\rDgain Depth Controller = %f\n\r", _Dgain); -} \ No newline at end of file +}