![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
kani
Dependencies: 2017NHKpin_config FEP omni_wheel PID R1307 ikarashiMDC
\ ̄\ / ̄/ /l \ \ / / lヽ | ヽ ヽ | | / / | \ ` ‐ヽ ヽ ● ● / / ‐ / \ __ l | ||___|| / l __ / \ \ / \/ /\| 人__人 |/\ <ズワイガニ //\| |/\\ //\| ケガニ |/\\ / . \_____/ \ ┏┓ ┏━┓┏┓ ┏┓ ┏┓┏┓ ┏┓ ┏┓┗┛ ┏┓ ┗┓┃┗┛ ┏┛┗━┓ ┃┃┃┃ ┃┃┏━┛┗┓┏┓┏┛┗━┓┃┃┏┓┏┓┏━━━┓ ┗┓┏━┛ ┃┃┗┛ ┃┃┗━┓┏┛┗┛┗┓┏┓┃┗┛┗┛┃┃┗━━━┛ ┏┛┃┏━┓┃┗━━┓┃┃┏━┛┗┓ ┏┛┃┃┃ ┃┃ ┃┏┛┗━┛┗━━┓┃┃┃┃┏┓┏┛ ┗━┛┃┃ ┃┃┏┓ ┃┃┏━━┓┏━━┛┃┃┃┃┗┛┃ ┏┛┃ ┃┃┃┗━━┓ ┗┛┗━━┛┗━━━┛┗┛┗━━┛ ┗━┛ ┗┛┗━━━┛
Diff: bot/slider/slider.h
- Revision:
- 9:39be1525dfe0
- Child:
- 15:9aa11febe517
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bot/slider/slider.h Thu Sep 07 17:37:41 2017 +0900 @@ -0,0 +1,26 @@ +#ifndef SLIDER_H +#define SLIDER_H + +#include "mbed.h" +#include "pin_config.h" +#include "ikarashiMDC.h" +#include "QEI.h" + +const int PULSES_PER_REV = 6; + +class Slider { +public: + Slider(DigitalOut* RS485Controller, Serial *RS485); + + void slide(float speed); + void release(); +private: + void resetheight(); + + ikarashiMDC slideMotor; + QEI encoder; + InterruptIn limitSwitch; + DigitalOut solenoid; +}; + +#endif