Dependencies:   AmmoPusher AmmoSupplier Shooter

Dependents:   OBROT_ALL

Committer:
inst
Date:
Fri Aug 21 04:52:50 2015 +0000
Revision:
0:987c53b6a212
Child:
1:3b0b583eba77
y evol

Who changed what in which revision?

UserRevisionLine numberNew contents of line
inst 0:987c53b6a212 1 #ifndef INCLUDED_SHOOTING_SYSTEM_H
inst 0:987c53b6a212 2 #define INCLUDED_SHOOTING_SYSTEM_H
inst 0:987c53b6a212 3
inst 0:987c53b6a212 4 class I2CServo;
inst 0:987c53b6a212 5 class I2CMotor;
inst 0:987c53b6a212 6 class Command;
inst 0:987c53b6a212 7 class AmmoPusher;
inst 0:987c53b6a212 8 class AmmoSupplier;
inst 0:987c53b6a212 9 class Shooter;
inst 0:987c53b6a212 10
inst 0:987c53b6a212 11 class ShootingSystem{
inst 0:987c53b6a212 12 public:
inst 0:987c53b6a212 13 ShootingSystem(
inst 0:987c53b6a212 14 I2CServo* angleManagerServo, I2CServo* positionManagerServo,
inst 0:987c53b6a212 15 I2CMotor* ammoPusherMotor, I2CMotor** ammoSupplier,
inst 0:987c53b6a212 16 Shooter* shooter );
inst 0:987c53b6a212 17 void update( Command command );
inst 0:987c53b6a212 18 private:
inst 0:987c53b6a212 19 void reset();
inst 0:987c53b6a212 20
inst 0:987c53b6a212 21 I2CServo* mShooterAngleManager;
inst 0:987c53b6a212 22 I2CServo* mShooterPositionManager;
inst 0:987c53b6a212 23 AmmoPusher* mAmmoPusher;
inst 0:987c53b6a212 24 AmmoSupplier* mAmmoSupplier;
inst 0:987c53b6a212 25 Shooter* mShooter;
inst 0:987c53b6a212 26 bool mIsShooting;
inst 0:987c53b6a212 27 bool mIsResetting;
inst 0:987c53b6a212 28 };
inst 0:987c53b6a212 29
inst 0:987c53b6a212 30 #endif