-
Notifications
You must be signed in to change notification settings - Fork 1
Subsystem Wrapper #27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
62014a5
a006a2e
7feb7aa
fa22f14
0daebb1
8170a19
30c3266
dd80c61
7da9a38
f4e5526
22e0e7b
f5357a2
2d96e0b
a1684ed
1328b40
7d1000c
babc616
546c41d
96fc178
8984bf3
f75464c
d39b117
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| [submodule "src/main/java/frc/trigon/lib"] | ||
| path = src/main/java/frc/trigon/lib | ||
| url = https://github.com/Programming-TRIGON/TRIGONLib | ||
| branch = subsystem-wrapper |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,12 +5,13 @@ | |
| import edu.wpi.first.wpilibj2.command.button.Trigger; | ||
| import frc.trigon.lib.hardware.misc.KeyboardController; | ||
| import frc.trigon.lib.hardware.misc.XboxController; | ||
| import frc.trigon.robot.commands.commandclasses.IntakeAssistCommand; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick | 🔵 Trivial Unused import.
|
||
|
|
||
| import java.util.function.DoubleUnaryOperator; | ||
|
|
||
| public class OperatorConstants { | ||
| public static final double DRIVER_CONTROLLER_DEADBAND = 0.07; | ||
| private static final int DRIVER_CONTROLLER_PORT = 0; | ||
| private static final int DRIVER_CONTROLLER_PORT = 1; | ||
| private static final int | ||
| DRIVER_CONTROLLER_RIGHT_STICK_EXPONENT = 1, | ||
| DRIVER_CONTROLLER_LEFT_STICK_EXPONENT = 2; | ||
|
|
@@ -43,5 +44,6 @@ public class OperatorConstants { | |
| FORWARD_QUASISTATIC_CHARACTERIZATION_TRIGGER = OPERATOR_CONTROLLER.right(), | ||
| BACKWARD_QUASISTATIC_CHARACTERIZATION_TRIGGER = OPERATOR_CONTROLLER.left(), | ||
| FORWARD_DYNAMIC_CHARACTERIZATION_TRIGGER = OPERATOR_CONTROLLER.up(), | ||
| BACKWARD_DYNAMIC_CHARACTERIZATION_TRIGGER = OPERATOR_CONTROLLER.down(); | ||
| BACKWARD_DYNAMIC_CHARACTERIZATION_TRIGGER = OPERATOR_CONTROLLER.down(), | ||
| INTAKE_TRIGGER = DRIVER_CONTROLLER.leftTrigger(); | ||
| } | ||
This file was deleted.
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,12 @@ | ||||||||||||||||||||
| package frc.trigon.robot.subsystems.arm; | ||||||||||||||||||||
|
|
||||||||||||||||||||
| import edu.wpi.first.math.geometry.Pose3d; | ||||||||||||||||||||
| import frc.trigon.lib.hardware.phoenix6.talonfx.TalonFXMotor; | ||||||||||||||||||||
| import frc.trigon.lib.subsystems.arm.ArmSubsystem; | ||||||||||||||||||||
| import frc.trigon.lib.subsystems.arm.ArmSubsystemConfiguration; | ||||||||||||||||||||
|
Comment on lines
+4
to
+6
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick | 🔵 Trivial Remove unused imports.
Suggested fix package frc.trigon.robot.subsystems.arm;
import edu.wpi.first.math.geometry.Pose3d;
-import frc.trigon.lib.hardware.phoenix6.talonfx.TalonFXMotor;
import frc.trigon.lib.subsystems.arm.ArmSubsystem;
-import frc.trigon.lib.subsystems.arm.ArmSubsystemConfiguration;
public class Arm extends ArmSubsystem {📝 Committable suggestion
Suggested change
|
||||||||||||||||||||
|
|
||||||||||||||||||||
| public class Arm extends ArmSubsystem { | ||||||||||||||||||||
| public Arm() { | ||||||||||||||||||||
| super(ArmConstants.MASTER_MOTOR, ArmConstants.ARM_CONFIG, new Pose3d()); | ||||||||||||||||||||
| } | ||||||||||||||||||||
| } | ||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧹 Nitpick | 🔵 Trivial
Package name
flyWheelshould be lowercase.Java package naming convention uses all lowercase. Consider renaming to
flywheelfor consistency.