This repository has been archived by the owner on Jan 9, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
11c6e02
commit c7dc155
Showing
9 changed files
with
90 additions
and
268 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
src/main/java/frc/robot/subsystems/spindex/BaseSpindexConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// Copyright (c) 2024 FRC 3256 | ||
// https://github.com/Team3256 | ||
// | ||
// Use of this source code is governed by a | ||
// license that can be found in the LICENSE file at | ||
// the root directory of this project. | ||
|
||
package frc.robot.subsystems.spindex; | ||
|
||
public class BaseSpindexConstants { | ||
public static int kFlashConfigRetries = 5; | ||
public static double kStatusSignalUpdateFrequency = 50; // idk if this is right | ||
public static boolean kUseMotionMagic = false; | ||
public static int kSpindexBeamBreakDIO = 1; | ||
} |
29 changes: 0 additions & 29 deletions
29
src/main/java/frc/robot/subsystems/spindex/ShooterFeederIO.java
This file was deleted.
Oops, something went wrong.
84 changes: 0 additions & 84 deletions
84
src/main/java/frc/robot/subsystems/spindex/ShooterFeederIOTalonFX.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
src/main/java/frc/robot/subsystems/spindex/SpindexFeederConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// Copyright (c) 2024 FRC 3256 | ||
// https://github.com/Team3256 | ||
// | ||
// Use of this source code is governed by a | ||
// license that can be found in the LICENSE file at | ||
// the root directory of this project. | ||
|
||
package frc.robot.subsystems.spindex; | ||
|
||
import com.ctre.phoenix6.configs.*; | ||
import com.ctre.phoenix6.signals.InvertedValue; | ||
import com.ctre.phoenix6.signals.NeutralModeValue; | ||
import frc.robot.utils.generics.SingleMotorConstants; | ||
|
||
public class SpindexFeederConstants extends BaseSpindexConstants implements SingleMotorConstants { | ||
public static int kMotorID = 43; | ||
public static TalonFXConfiguration kMotorConfig = | ||
new TalonFXConfiguration() // TODO: tune | ||
.withSlot0(new Slot0Configs().withKS(0).withKV(0.1).withKP(1).withKI(0).withKD(0)) | ||
.withMotorOutput( | ||
new MotorOutputConfigs() | ||
.withNeutralMode(NeutralModeValue.Brake) | ||
.withInverted(InvertedValue.Clockwise_Positive)) | ||
.withMotionMagic( | ||
new MotionMagicConfigs() | ||
.withMotionMagicAcceleration(120) | ||
.withMotionMagicCruiseVelocity(60) | ||
.withMotionMagicJerk(1200)) | ||
.withCurrentLimits( | ||
new CurrentLimitsConfigs() | ||
.withStatorCurrentLimitEnable(true) | ||
.withStatorCurrentLimit(80)); | ||
; | ||
|
||
public static double shooterFeederVoltage = 8; | ||
|
||
public static class SimulationConstants { | ||
public static final double kGearRatio = 1.0; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.