mecha
Dependents: 2019NHK_A_manual_red 2019NHK_A_manual_red 2019NHK_A_manual_blue
Diff: towelest.h
- Revision:
- 2:623fb33351af
- Parent:
- 1:c6950f45b03c
- Child:
- 3:63bb3e19c7eb
diff -r c6950f45b03c -r 623fb33351af towelest.h --- a/towelest.h Wed Sep 04 05:14:18 2019 +0000 +++ b/towelest.h Fri Sep 13 04:38:47 2019 +0000 @@ -4,7 +4,6 @@ #include "mbed.h" #include "ikarashiMDC.h" #include "PID.h" -#include "QEI.h" #include "pinconfig_main.h" const int RS485_BAUD = 115200; @@ -14,14 +13,14 @@ public: towelest(); void open(); + void close(); void lift(); void drop(); + void setPulse(int Loli); void loop(); private: - float RotationDistance; ikarashiMDC *Motor[3]; Serial serial; - QEI enc1; PID pid; Thread thread; DigitalIn LimitSW1; @@ -29,6 +28,6 @@ Timer timer; float compute; float time; - int Limit1,Limit2; + int Limit1,Limit2,Loli,loli; }; #endif \ No newline at end of file