NagaokaRoboticsClub_mbedTeam / Mbed OS NHK2017_octopus2

Dependencies:   2017NHKpin_config FEP HMC6352 PID QEI R1307 ikarashiMDC omni_wheel

Fork of KANIv3 by NagaokaRoboticsClub_mbedTeam

Revision:
37:6b6616008e78
Parent:
18:78df87e20590
Child:
38:fbd5242ab2b3
--- a/bot/slider/slider.h	Mon Oct 09 09:22:44 2017 +0900
+++ b/bot/slider/slider.h	Wed Oct 18 19:32:26 2017 +0900
@@ -6,21 +6,15 @@
 #include "ikarashiMDC.h"
 #include "QEI.h"
 
-const int PULSES_PER_REV = 720;
-const int MAX_HEIGHT = 4700;
-
 class Slider {
 public:
 	Slider(DigitalOut* RS485Controller, Serial *RS485);
 
 	void slide(float speed);
 private:
-	void resetheight();
-	bool isReseted;
-
 	ikarashiMDC slideMotor;
-	QEI encoder;
-	InterruptIn limitSwitch;
+	DigitalIn downLimitSwitch;
+	DigitalIn upLimitSwitch;
 	Serial slideSerial;
 };