2023-Robot
Robot code for 2023 FRC season by Argos, FRC team #1756
Loading...
Searching...
No Matches
oui_oui_placer_subsystem.h
Go to the documentation of this file.
1
4
5#pragma once
6
10#include <ctre/Phoenix.h>
11#include <frc2/command/SubsystemBase.h>
12
13class OuiOuiPlacerSubsystem : public frc2::SubsystemBase {
14 public:
16
20 void Periodic() override;
21
25 void SetOuiOuiSpeed(double percentOutput, bool overrideSoftLimits = false);
26
28 void StopOuiOuiPlacer();
29
32 units::degree_t GetOuiOuiAngle();
33
36
39
41
43
44 bool IsStalled();
45
46 private:
49 WPI_TalonFX m_ouiOuiDrive;
54};
Definition oui_oui_placer_subsystem.h:13
void StopOuiOuiPlacer()
Stops the oui oui placer, and sets to motor's neutural mode.
Definition oui_oui_placer_subsystem.cpp:64
void SetOuiOuiSpeed(double percentOutput, bool overrideSoftLimits=false)
Sets the speed of placer mechanism motor.
Definition oui_oui_placer_subsystem.cpp:46
bool ForwardSoftLimitExceeded()
Definition oui_oui_placer_subsystem.cpp:90
void Periodic() override
Definition oui_oui_placer_subsystem.cpp:101
bool ReverseSoftLimitExceeded()
Definition oui_oui_placer_subsystem.cpp:95
units::degree_t GetOuiOuiAngle()
Retrieves the current angle the oui oui placer.
Definition oui_oui_placer_subsystem.cpp:68
bool m_softLimitsEnabled
Definition oui_oui_placer_subsystem.h:53
void EnablePlacerSoftLimits()
Turns on soft limits of placer.
Definition oui_oui_placer_subsystem.cpp:72
bool m_stalled
Definition oui_oui_placer_subsystem.h:52
WPI_TalonFX m_ouiOuiDrive
Definition oui_oui_placer_subsystem.h:49
argos_lib::RobotInstance m_instance
Definition oui_oui_placer_subsystem.h:47
bool IsStalled()
Definition oui_oui_placer_subsystem.cpp:86
bool m_manualOverride
Definition oui_oui_placer_subsystem.h:48
void DisablePlacerSoftLimits()
Turns off soft limits of placer.
Definition oui_oui_placer_subsystem.cpp:81
argos_lib::Debouncer m_stallDebounce
Definition oui_oui_placer_subsystem.h:51
argos_lib::NTMotorPIDTuner m_ouiOuiTuner
Definition oui_oui_placer_subsystem.h:50
Definition debouncer.h:14
Allows user to set PID parameters from network tables and update the motor configurations on updates....
Definition nt_motor_pid_tuner.h:48
RobotInstance
Differentiates between practice robot and competition robot.
Definition config_types.h:13