25 lines
382 B
C++
25 lines
382 B
C++
/*
|
|
* Shooter.h
|
|
*
|
|
* Created on: Feb 2, 2016
|
|
* Author: Jason
|
|
*/
|
|
|
|
#ifndef SRC_SHOOTER_H_
|
|
#define SRC_SHOOTER_H_
|
|
|
|
class Shooter {
|
|
RobotDrive shooterDrive;
|
|
public:
|
|
Shooter(CANTalon *s1, CANTalon *s2) {
|
|
shooterDrive = RobotDrive(s1, s2);
|
|
}
|
|
virtual ~Shooter();
|
|
|
|
void SetPower(float power) {
|
|
shooterDrive.ArcadeDrive(power, 0, false);
|
|
}
|
|
};
|
|
|
|
#endif /* SRC_SHOOTER_H_ */
|