Diff: AmmoPusher.h
- Revision:
- 0:fac139a6b77c
- Child:
- 1:42d2772575c5
diff -r 000000000000 -r fac139a6b77c AmmoPusher.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/AmmoPusher.h Wed Aug 19 06:24:33 2015 +0000 @@ -0,0 +1,26 @@ +#ifndef INCLUDED_AMMO_PUSHER_H +#define INCLUDED_AMMO_PUSHER_H + +#include "mbed.h" +class I2CMotor; + +class AmmoPusher { +public: + AmmoPusher( I2CMotor* drawerMotor ); + + void draw(); + void push(); + + bool hasPusherFinishedDrawing(); + bool hasPusherFinishedPushing(); + +private: + static const PinName mDrawingLimitSwitchPinName; + static const PinName mPushingLimitSwitchPinName; + + DigitalIn* mDrawingLimitSwitch; + DigitalIn* mPushingLimitSwitch; + I2CMotor* mDrawerMotor; +}; + +#endif