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:
35
36 HeroShooterSubsystem(config configuration);
37
38 void setState(ShootState shoot_state);
39
40 void periodic(int curr_heat, int heat_limit);
42
43private:
44 unsigned long shooter_time;
45 bool invert_flywheel;
46
47
48
49 ShootState shoot;
50
51
52 int barrel_heat;
53 int barrel_heat_limit;
54 bool shootReady;
55
56 int shootTargetPosition;
57};
ShootState
Definition ShooterSubsystem.h:16
CANBus
Definition CANHandler.h:45
Definition DJIMotor.h:48
Definition HeroShooterSubsystem.h:13
DJIMotor feeder
Definition HeroShooterSubsystem.h:41
DJIMotor indexer
Definition HeroShooterSubsystem.h:41
DJIMotor flywheelL
Definition HeroShooterSubsystem.h:41
DJIMotor flywheelR
Definition HeroShooterSubsystem.h:41
Definition Subsystem.h:5
void setState()
void periodic()
Definition HeroShooterSubsystem.h:16
bool invert
Definition HeroShooterSubsystem.h:33
short flywheelR_id
Definition HeroShooterSubsystem.h:20
CANHandler::CANBus canBusIndexer
Definition HeroShooterSubsystem.h:31
PID::config indexer_PID_vel
Definition HeroShooterSubsystem.h:27
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
CANHandler::CANBus canBusTopFeed
Definition HeroShooterSubsystem.h:30
Definition PID.h:154