機構部
Dependents: 2019BSyudo Bsyudo 2019Bsyudo
Diff: mechanism.h
- Revision:
- 0:0b7a52a20594
- Child:
- 1:58b20a731e15
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mechanism.h Mon Sep 09 04:49:03 2019 +0000 @@ -0,0 +1,31 @@ +#ifndef MECHANISM_H +#define MECHANISM_H + +#include "mbed.h" +#include "QEI.h" +#include "pin_config.h" +#include "ikarashiMDC.h" +#include "serialArduino.h" + +class Mechanism +{ +public: + Mechanism(Serial* serial); + void getTrigger(int Trigger); + void up(); + void down(); + void collect(); + void hookRight(); + void hookLeft(); + void loadRight(); + void loadLeft(); + void lift(); + +private: + SerialArduino nano; + int trigger; + QEI encoder; + ikarashiMDC **md; +}; + +#endif \ No newline at end of file