Dependents:   ShootingSystem

AmmoPusher.h

Committer:
inst
Date:
2015-08-19
Revision:
0:fac139a6b77c
Child:
1:42d2772575c5

File content as of revision 0:fac139a6b77c:

#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