Skip to content

Commit

Permalink
Log swerve IO implementations
Browse files Browse the repository at this point in the history
  • Loading branch information
SamCarlberg committed Jan 5, 2025
1 parent abf208a commit d506036
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/frc/robot/subsystems/drive/MAXSwerveIO.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

import com.revrobotics.spark.SparkLowLevel.MotorType;
import com.revrobotics.spark.SparkMax;
import edu.wpi.first.epilogue.Logged;
import edu.wpi.first.math.geometry.Rotation2d;
import frc.robot.subsystems.drive.swerve.MAXSwerveModuleIO;
import frc.robot.subsystems.drive.swerve.SwerveModule;
Expand All @@ -23,6 +24,7 @@
* IO for a swerve drive using REV MAXSwerve modules driven by a NEO motor and turned by a NEO 550
* motor.
*/
@Logged
public class MAXSwerveIO implements SwerveIO {
private final SwerveModule frontLeft =
new SwerveModule(
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/frc/robot/subsystems/drive/SimSwerveIO.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@
import static frc.robot.Constants.DriveConstants.rearLeftChassisAngularOffset;
import static frc.robot.Constants.DriveConstants.rearRightChassisAngularOffset;

import edu.wpi.first.epilogue.Logged;
import edu.wpi.first.math.geometry.Rotation2d;
import frc.robot.sim.Simulation;
import frc.robot.sim.SimulationContext;
import frc.robot.subsystems.drive.swerve.SimModuleIO;
import frc.robot.subsystems.drive.swerve.SwerveModule;

@Logged
public class SimSwerveIO implements SwerveIO {
private final SwerveModule frontLeft;
private final SwerveModule frontRight;
Expand Down

0 comments on commit d506036

Please sign in to comment.