-
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
Showing
4 changed files
with
35 additions
and
4 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
mattlib2-ctre/src/main/java/xyz/auriium/mattlib/ctre/BaseTalonFXController.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,24 @@ | ||
package xyz.auriium.mattlib.ctre; | ||
|
||
import com.ctre.phoenix6.hardware.TalonFX; | ||
import xyz.auriium.mattlib2.hardware.ILinearController; | ||
import xyz.auriium.mattlib2.hardware.IRotationalController; | ||
import xyz.auriium.mattlib2.hardware.config.MotorComponent; | ||
|
||
public class BaseTalonFXController extends BaseTalonFXMotor implements ILinearController, IRotationalController { | ||
public BaseTalonFXController(TalonFX talonFX, MotorComponent motorComponent) { | ||
super(talonFX, motorComponent); | ||
} | ||
|
||
@Override public void controlToLinearReferenceArbitrary(double setpointMechanism_meters, double arbitraryFF_volts) { | ||
|
||
} | ||
|
||
@Override public void controlToNormalizedReferenceArbitrary(double setpoint_mechanismNormalizedRotations, double arbitraryFF_volts) { | ||
|
||
} | ||
|
||
@Override public void controlToInfiniteReferenceArbitrary(double setpoint_mechanismRotations, double arbitraryFF_volts) { | ||
|
||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,10 +20,6 @@ enum Normally { | |
CLOSED | ||
} | ||
|
||
enum OptimizationMode { | ||
NONE, | ||
POSITION | ||
} | ||
|
||
|
||
/** | ||
|
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