public class AimShooter
extends edu.wpi.first.wpilibj.command.Subsystem
Modifier and Type | Class and Description |
---|---|
static class |
AimShooter.AimState |
Modifier and Type | Field and Description |
---|---|
(package private) edu.wpi.first.wpilibj.AnalogInput |
m_input |
(package private) PIDController |
m_PID |
(package private) IAngleSensor |
m_sensor |
(package private) edu.wpi.first.wpilibj.CANTalon |
m_talon |
Constructor and Description |
---|
AimShooter() |
Modifier and Type | Method and Description |
---|---|
void |
initDefaultCommand() |
void |
resetEncoder() |
double |
setMotorSpeed(double target)
It decides the speed of the motor
|
void |
setState(AimShooter.AimState State) |
void |
stopMotors() |
edu.wpi.first.wpilibj.CANTalon m_talon
IAngleSensor m_sensor
edu.wpi.first.wpilibj.AnalogInput m_input
PIDController m_PID
public void initDefaultCommand()
initDefaultCommand
in class edu.wpi.first.wpilibj.command.Subsystem
public void stopMotors()
public double setMotorSpeed(double target)
target
- angelpublic void setState(AimShooter.AimState State)
State
- of the shooterpublic void resetEncoder()