Confining all of the CoreIO pieces to a single folder because I can't be bothered to make this an actual library
This commit is contained in:
1 parent
48fc59daf5
commit
eee0faedec
6 files changed
+10
-10
No files matched your search
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
package first.robot.abstracts;
|
package first.robot.coreio.abstracts;
|
||||||
|
|
||||||
public abstract class PositionableMotor extends SimpleMotor {
|
public abstract class PositionableMotor extends SimpleMotor {
|
||||||
|
|
||||||
+2
-2
@@ -1,8 +1,8 @@
|
|||||||
package first.robot.abstracts;
|
package first.robot.coreio.abstracts;
|
||||||
|
|
||||||
import org.wpilib.hardware.motor.MotorController;
|
import org.wpilib.hardware.motor.MotorController;
|
||||||
|
|
||||||
import first.robot.utilities.CommonMotorConfig;
|
import first.robot.coreio.utilities.CommonMotorConfig;
|
||||||
|
|
||||||
public abstract class SimpleMotor implements MotorController {
|
public abstract class SimpleMotor implements MotorController {
|
||||||
|
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
package first.robot.abstracts;
|
package first.robot.coreio.abstracts;
|
||||||
|
|
||||||
public abstract class VelocityTrackingMotor extends PositionableMotor {
|
public abstract class VelocityTrackingMotor extends PositionableMotor {
|
||||||
|
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
package first.robot.enums;
|
package first.robot.coreio.enums;
|
||||||
|
|
||||||
public enum SwerveModuleName {
|
public enum SwerveModuleName {
|
||||||
FRONT_LEFT("Front Left"),
|
FRONT_LEFT("Front Left"),
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
package first.robot.utilities;
|
package first.robot.coreio.utilities;
|
||||||
|
|
||||||
public class CommonMotorConfig {
|
public class CommonMotorConfig {
|
||||||
|
|
||||||
+4
-4
@@ -1,10 +1,10 @@
|
|||||||
package first.robot.utilities;
|
package first.robot.coreio.utilities;
|
||||||
|
|
||||||
import org.wpilib.math.kinematics.SwerveModuleVelocity;
|
import org.wpilib.math.kinematics.SwerveModuleVelocity;
|
||||||
|
|
||||||
import first.robot.abstracts.PositionableMotor;
|
import first.robot.coreio.abstracts.PositionableMotor;
|
||||||
import first.robot.abstracts.VelocityTrackingMotor;
|
import first.robot.coreio.abstracts.VelocityTrackingMotor;
|
||||||
import first.robot.enums.SwerveModuleName;
|
import first.robot.coreio.enums.SwerveModuleName;
|
||||||
|
|
||||||
public class SwerveModule {
|
public class SwerveModule {
|
||||||
private SwerveModuleName moduleName;
|
private SwerveModuleName moduleName;
|
||||||
Reference in new issue
Block a user