mirror of
https://github.com/team2059/Zaphod
synced 2024-12-18 20:12:28 -05:00
28 lines
591 B
C++
28 lines
591 B
C++
#include <WPILib.h>
|
|
#include "../Definitions.h"
|
|
|
|
class ZaphodShooter
|
|
{
|
|
private:
|
|
Jaguar *shooterLeft1, *shooterLeft2, *shooterRight1, *shooterRight2;
|
|
AnalogChannel *shooterAngle;
|
|
public:
|
|
ZaphodShooter();
|
|
enum
|
|
{
|
|
IDLE_PRESHOT,
|
|
FIRING,
|
|
LOWERING,
|
|
IDLE_POSTSHOT
|
|
}e_ShooterState;
|
|
bool isShooting;
|
|
void startShootingSequence();
|
|
void shootForAngle(float, float);
|
|
void shootRaw(float);
|
|
void lower(float);
|
|
void stopShooter();
|
|
void updateShooterPosition();
|
|
float floatToPWM(float input);
|
|
float getAngle();
|
|
};
|