Octopus!!

Dependencies:   2017NHKpin_config FEP HMC6352 PID QEI R1307 ikarashiMDC omni_wheel

Fork of KANIv3 by NagaokaRoboticsClub_mbedTeam

Revision:
49:69a7235d837a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bot/limitSwitch/limitSwitch.h	Sat Nov 11 17:40:10 2017 +0900
@@ -0,0 +1,31 @@
+#ifndef LIMITSWITCH_H
+#define LIMITSWITCH_H
+
+#include "mbed.h"
+#include "pin_config.h"
+
+
+
+class Limit {
+public :
+
+    Limit(PinName limitSwitch1, PinName limitSwitch2);
+
+
+    void frontLimit();
+
+    void backLimit();
+
+    void resetPosition();
+
+    int getPosition();
+
+private :
+    InterruptIn frontSwitch;
+    InterruptIn backSwitch;
+
+protected :
+    int position;
+};
+
+#endif