Dependents:   ShootingSystem

Committer:
inst
Date:
Fri Aug 21 04:52:43 2015 +0000
Revision:
1:42d2772575c5
Parent:
0:fac139a6b77c
Child:
2:5ec2a3097d4c
y evol

Who changed what in which revision?

UserRevisionLine numberNew contents of line
inst 0:fac139a6b77c 1 #ifndef INCLUDED_AMMO_PUSHER_H
inst 0:fac139a6b77c 2 #define INCLUDED_AMMO_PUSHER_H
inst 0:fac139a6b77c 3
inst 0:fac139a6b77c 4 #include "mbed.h"
inst 0:fac139a6b77c 5 class I2CMotor;
inst 0:fac139a6b77c 6
inst 0:fac139a6b77c 7 class AmmoPusher {
inst 0:fac139a6b77c 8 public:
inst 0:fac139a6b77c 9 AmmoPusher( I2CMotor* drawerMotor );
inst 0:fac139a6b77c 10
inst 1:42d2772575c5 11 void update();
inst 0:fac139a6b77c 12 void draw();
inst 0:fac139a6b77c 13 void push();
inst 0:fac139a6b77c 14
inst 0:fac139a6b77c 15 bool hasPusherFinishedDrawing();
inst 0:fac139a6b77c 16 bool hasPusherFinishedPushing();
inst 0:fac139a6b77c 17
inst 0:fac139a6b77c 18 private:
inst 1:42d2772575c5 19 static const float mDuty;
inst 0:fac139a6b77c 20 static const PinName mDrawingLimitSwitchPinName;
inst 0:fac139a6b77c 21 static const PinName mPushingLimitSwitchPinName;
inst 0:fac139a6b77c 22
inst 0:fac139a6b77c 23 DigitalIn* mDrawingLimitSwitch;
inst 0:fac139a6b77c 24 DigitalIn* mPushingLimitSwitch;
inst 0:fac139a6b77c 25 I2CMotor* mDrawerMotor;
inst 0:fac139a6b77c 26 };
inst 0:fac139a6b77c 27
inst 0:fac139a6b77c 28 #endif