Flying Sea Glider / Mbed 2 deprecated 2019_13sep_jcw_nosd

Dependencies:   mbed MODSERIAL FATFileSystem

Revision:
54:d4990fb68404
Parent:
14:85b64a4d08e8
--- a/LinearActuator/LinearActuator.cpp	Thu Jun 07 13:02:08 2018 +0000
+++ b/LinearActuator/LinearActuator.cpp	Fri Jun 08 13:56:30 2018 +0000
@@ -305,4 +305,10 @@
 bool LinearActuator::toggleDeadband(bool toggle) {
     _pid.toggleDeadBand(toggle);
     return toggle;
-}         
\ No newline at end of file
+}
+
+// 06/07/2018 view actual switch state
+
+int LinearActuator::getHWSwitchReading() {
+    return _limitSwitch.read();
+}
\ No newline at end of file