Initial Arm stuff

This commit is contained in:
Jason Cox 2016-02-13 16:44:57 -05:00
parent 9e14cfd246
commit 19ed530a85

View File

@ -20,7 +20,8 @@ class Robot: public IterativeRobot
{ {
Talon left_drive, right_drive; Talon left_drive, right_drive;
CANTalon shooter1, shooter2, CANTalon shooter1, shooter2,
launch_spinny; launch_spinny,
arms;
RobotDrive drive; RobotDrive drive;
Shooter shooter; Shooter shooter;
Joystick driver_stick, operator_stick; Joystick driver_stick, operator_stick;
@ -31,6 +32,7 @@ public:
shooter1(11), // shooter drive 1 shooter1(11), // shooter drive 1
shooter2(10), // shooter drive 2 shooter2(10), // shooter drive 2
launch_spinny(12), launch_spinny(12),
arms(13),
drive(&left_drive, &right_drive), drive(&left_drive, &right_drive),
shooter( // initialize Shooter object. shooter( // initialize Shooter object.
&shooter1, &shooter2, &launch_spinny), &shooter1, &shooter2, &launch_spinny),
@ -47,6 +49,7 @@ private:
bool ramping; bool ramping;
bool shooting; bool shooting;
bool unjamming; bool unjamming;
bool arming;
float shooter_power; float shooter_power;
LiveWindow *lw = LiveWindow::GetInstance(); LiveWindow *lw = LiveWindow::GetInstance();
@ -71,6 +74,7 @@ private:
ramping = false; ramping = false;
shooting = false; shooting = false;
unjamming = false; unjamming = false;
arming = false;
shooter_power = 0; shooter_power = 0;
} }
@ -218,6 +222,8 @@ private:
shooter.StopShooter(); shooter.StopShooter();
} }
// This code will become obsolete after the Shooter logic is complete. // This code will become obsolete after the Shooter logic is complete.
float opThrottle = SaneThrottle(operator_stick.GetThrottle()); float opThrottle = SaneThrottle(operator_stick.GetThrottle());