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.
Dependencies: mbed MODSERIAL FATFileSystem
Diff: LinearActuator/LinearActuator.cpp
- Revision:
- 14:85b64a4d08e8
- Parent:
- 13:84fcbe1dcd62
- Child:
- 54:d4990fb68404
--- a/LinearActuator/LinearActuator.cpp Mon Oct 30 21:09:19 2017 +0000 +++ b/LinearActuator/LinearActuator.cpp Tue Oct 31 17:06:52 2017 +0000 @@ -273,6 +273,7 @@ //trap the program here while we wait for the limit switch to be triggered //when it does, the limit interrupt will stop the motors if (_limit) { + pc().printf("\r\nHit limit switch\r\n"); //the switch has been pressed if (abs(_filter.getVelocity()) < 0.1) { //this is here to make sure the adc filter is not jittering around