Upgrading to 2025.1.0

This commit is contained in:
thenetworkgrinch
2024-12-09 23:26:04 +00:00
parent 9fe6551d88
commit 4bc6978a20
35 changed files with 1902 additions and 1122 deletions

View File

@@ -1,5 +1,6 @@
package swervelib.motors;
import edu.wpi.first.math.system.plant.DCMotor;
import swervelib.encoders.SwerveAbsoluteEncoder;
import swervelib.parser.PIDFConfig;
@@ -13,6 +14,12 @@ public abstract class SwerveMotor
* The maximum amount of times the swerve motor will attempt to configure a motor if failures occur.
*/
public final int maximumRetries = 5;
/**
* Sim motor to use, defaulted in {@link SwerveMotor#getSimMotor()}, but can be overridden here. <br/> NOTE: This will
* not change the simulation motor type! It is intended for use only if you are utilizing Feedforwards from
* PathPlanner.
*/
public DCMotor simMotor;
/**
* Whether the swerve motor is a drive motor.
*/
@@ -172,6 +179,13 @@ public abstract class SwerveMotor
*/
public abstract Object getMotor();
/**
* Get the {@link DCMotor} of the motor class.
*
* @return {@link DCMotor} of this type.
*/
public abstract DCMotor getSimMotor();
/**
* Queries whether the absolute encoder is directly attached to the motor controller.
*