TR-mbed 1.0
Loading...
Searching...
No Matches
HeroShooterSubsystem.h
Go to the documentation of this file.
1
2
3#pragma once
4
8#include "Subsystem.h"
9#include "ShooterSubsystem.h"
10
11// struct for config
13{
14public:
34
35 HeroShooterSubsystem(config configuration);
36
37 void setState(ShootState shoot_state);
38
39 void periodic(int curr_heat, int heat_limit);
40
41private:
42 unsigned long shooter_time;
43
44 DJIMotor flywheelL, flywheelR, indexer, feeder;
45
46 ShootState shoot;
47
48 int barrel_heat;
49 int barrel_heat_limit;
50 bool shootReady;
51
52 int shootTargetPosition;
53
54 bool invert_flywheel;
55};
ShootState
Definition ShooterSubsystem.h:16
CANBus
Definition CANHandler.h:45
Definition DJIMotor.h:47
Definition HeroShooterSubsystem.h:13
Definition Subsystem.h:5
void setState()
void periodic()
Definition HeroShooterSubsystem.h:16
bool invert
Definition HeroShooterSubsystem.h:32
short flywheelR_id
Definition HeroShooterSubsystem.h:20
PID::config indexer_PID_vel
Definition HeroShooterSubsystem.h:27
CANHandler::CANBus canBus
Definition HeroShooterSubsystem.h:30
PID::config indexer_PID_pos
Definition HeroShooterSubsystem.h:28
short flywheelL_id
Definition HeroShooterSubsystem.h:19
short feeder_id
Definition HeroShooterSubsystem.h:22
PID::config feeder_PID
Definition HeroShooterSubsystem.h:26
PID::config flywheelL_PID
Definition HeroShooterSubsystem.h:24
PID::config flywheelR_PID
Definition HeroShooterSubsystem.h:25
int heat_limit
Definition HeroShooterSubsystem.h:17
short indexer_id
Definition HeroShooterSubsystem.h:21
Definition PID.h:154