2024-Robot
Robot code for 2024 FRC season by Argos, FRC team #1756
Loading...
Searching...
No Matches
intake_subsystem.h
Go to the documentation of this file.
1
4
5#pragma once
6
8#include <ctre/phoenix/motorcontrol/can/TalonSRX.h>
9#include <frc2/command/SubsystemBase.h>
10
11class IntakeSubsystem : public frc2::SubsystemBase {
12 public:
13 explicit IntakeSubsystem(argos_lib::RobotInstance robotInstance);
14
18 void Periodic() override;
19
20 void Intake(double speed);
21
22 void Disable();
23
24 [[nodiscard]] bool IsNotePresent();
25
26 void NoteDetectionOverride(bool override);
27
28 private:
29 // Components (e.g. motor controllers and sensors) should generally be
30 // declared private and exposed only through public methods.
31 ctre::phoenix::motorcontrol::can::TalonSRX m_primaryMotor;
32 ctre::phoenix::motorcontrol::can::TalonSRX m_secondaryMotor;
34};
Definition intake_subsystem.h:11
void Disable()
Definition intake_subsystem.cpp:32
ctre::phoenix::motorcontrol::can::TalonSRX m_primaryMotor
Definition intake_subsystem.h:31
void Intake(double speed)
Definition intake_subsystem.cpp:28
bool IsNotePresent()
Definition intake_subsystem.cpp:36
ctre::phoenix::motorcontrol::can::TalonSRX m_secondaryMotor
Definition intake_subsystem.h:32
void Periodic() override
Definition intake_subsystem.cpp:26
void NoteDetectionOverride(bool override)
Definition intake_subsystem.cpp:40
argos_lib::RobotInstance m_robotInstance
Definition intake_subsystem.h:33
RobotInstance
Differentiates between practice robot and competition robot.
Definition config_types.h:13