USFirst.org
follow us on twitter
like us on facebookMNFTC.org
Bookmark and Share

Thanks

The team members of FRC Team 2220 would like to give a big thanks to all of the Sponsors, Mentors and Parents that make having this team possible.

Thank you!

Team Login



Shooter.h Create PDF Send to Printer Email this Article
Written by TarinB   
Saturday, February 13 2010 16:42

#ifndef BTSHOOTER_H_

#define BTSHOOTER_H_

 

#include "WPILib.h"

#include <iostream.h>

#include "math.h"

#include "BaeUtilities.h"

 

#include "BTTurret.h"

#include "ControlBoard.h"

#include "BTRobot.h"

#include "Arbitrator.h"

#include "Sensors.h"

 

class BTShooter

{

public:

static const float SHOOT_MOTOR_SPEED = 0.75;

static const float SHOOT_TURRET_SPEED = 0.4;

Arbitrator* arbitrator;

BTTurret* turret;

BTShooter(Sensors*, ControlBoard*);

bool Fire(int);

void Enable(int);

void Disable(void);

void SetSpeed(float);

void SetSpeedToThrottle(void);

void ShootRampUp(Jaguar*, float, int);

private:

Jaguar* stageTwoMotor;

Jaguar* stageOneMotor;

 

Sensors* sensors;

ControlBoard* controlBoard;

bool enabled;

};

 

 

#endif

 

 

 

 

 

 

 

 
Lockheed Martin
Valid XHTML 1.0 Transitional Valid CSS!
Blanda
Blanda
Copyright © 2012 Eagan Robotics. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.