47 void periodic(
int curr_heat,
int heat_limit);
50 unsigned long shooter_time;
53 DJIMotor flywheelL, flywheelR, indexer;
59 int barrel_heat_limit;
62 int shootTargetPosition;
constexpr int NUM_BALLS_SHOT
Definition ShooterSubsystem.h:11
constexpr int HERO_FLYWHEEL_VELO
Definition ShooterSubsystem.h:13
constexpr int FLYWHEEL_VELO
Definition ShooterSubsystem.h:12
ShootState
Definition ShooterSubsystem.h:16
@ SHOOT
Definition ShooterSubsystem.h:16
@ OFF
Definition ShooterSubsystem.h:16
@ FLYWHEEL
Definition ShooterSubsystem.h:16
CANBus
Definition CANHandler.h:45
Definition ShooterSubsystem.h:20
ShooterType
Definition ShooterSubsystem.h:22
@ BURST
Definition ShooterSubsystem.h:22
@ AUTO
Definition ShooterSubsystem.h:22
Definition ShooterSubsystem.h:25
PID::config flywheelL_PID
Definition ShooterSubsystem.h:33
short flywheelL_id
Definition ShooterSubsystem.h:29
ShooterType type
Definition ShooterSubsystem.h:26
bool invert
Definition ShooterSubsystem.h:40
short indexer_id
Definition ShooterSubsystem.h:31
PID::config flywheelR_PID
Definition ShooterSubsystem.h:34
CANHandler::CANBus canBus
Definition ShooterSubsystem.h:38
PID::config indexer_PID_vel
Definition ShooterSubsystem.h:35
int heat_limit
Definition ShooterSubsystem.h:27
short flywheelR_id
Definition ShooterSubsystem.h:30
PID::config indexer_PID_pos
Definition ShooterSubsystem.h:36