mecha
Dependents: 2019NHK_A_manual_red 2019NHK_A_manual_red 2019NHK_A_manual_blue
Diff: towelest.h
- Revision:
- 1:c6950f45b03c
- Parent:
- 0:0797b0e47e6d
- Child:
- 2:623fb33351af
--- a/towelest.h Thu Aug 29 05:14:22 2019 +0000 +++ b/towelest.h Wed Sep 04 05:14:18 2019 +0000 @@ -5,23 +5,24 @@ #include "ikarashiMDC.h" #include "PID.h" #include "QEI.h" +#include "pinconfig_main.h" const int RS485_BAUD = 115200; -class towelest +class towelest { public: - towelest(Serial* RS485); + towelest(); void open(); void lift(); void drop(); void loop(); private: float RotationDistance; - ikarashiMDC **Motor; + ikarashiMDC *Motor[3]; + Serial serial; QEI enc1; PID pid; - Serial pc; Thread thread; DigitalIn LimitSW1; DigitalIn LimitSW2;