-
Notifications
You must be signed in to change notification settings - Fork 0
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
Coast Mode Elevator Zeroing #245
base: main
Are you sure you want to change the base?
Conversation
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.
You'll want to do this is a similar way you did the manual zeroing. You are creating new talon fx which won't work. You'll need to reference elevator subsystem somehow
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.
Looks good lets test!
@@ -342,6 +342,11 @@ public Command checkForManualZeroing() { | |||
.ignoringDisable(true); | |||
} | |||
|
|||
public Command setElevatorCostMode(boolean coastMode) { |
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.
we can set how much the elevator costs???? (●'◡'●)
This pull request includes several changes to the
src/main/java/frc/robot
directory to configure new motor settings and import necessary classes. The most important changes include the addition of a new configuration for the elevator motors and the initialization of these motors in theRobot
class.Motor Configuration and Initialization:
src/main/java/frc/robot/Constants.java
: Added a newTalonFXConfiguration
for the elevator motors with coast mode and counterclockwise positive inversion.src/main/java/frc/robot/Robot.java
: Imported necessary classes forTalonFX
,TalonFXConfiguration
,InvertedValue
, andNeutralModeValue
.src/main/java/frc/robot/Robot.java
: InitializedleftMotorFollower
andrightMotorLeader
asTalonFX
instances.src/main/java/frc/robot/Robot.java
: Configured the elevator motors to use the new coast configuration during robot initialization.