Skip to content

Commit

Permalink
Fix swerve
Browse files Browse the repository at this point in the history
  • Loading branch information
Blue-Flag-666 committed Nov 4, 2024
1 parent 2089eed commit db980f3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/main/java/frc/libzodiac
1 change: 1 addition & 0 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
package frc.robot;

import edu.wpi.first.wpilibj2.command.Command;
import frc.libzodiac.ZDashboard;
import frc.libzodiac.Zambda;
import frc.libzodiac.Zamera;
import frc.libzodiac.ui.Axis;
Expand Down
12 changes: 6 additions & 6 deletions src/main/java/frc/robot/subsystems/Chassis.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@
import frc.libzodiac.hardware.Pigeon;
import frc.libzodiac.hardware.TalonFXMotor;
import frc.libzodiac.hardware.group.TalonFXSwerve;
import frc.libzodiac.util.Vec2D;
import frc.libzodiac.util.Vec2;

public class Chassis extends Zwerve {
// TODO: Swerve zero position
private static final TalonFXSwerve front_left = new TalonFXSwerve(5, 1, 9, 3581).invert(false, true);
private static final TalonFXSwerve front_right = new TalonFXSwerve(8, 4, 12, 1921).invert(false, false);
private static final TalonFXSwerve rear_left = new TalonFXSwerve(6, 2, 10, 408).invert(true, true);
private static final TalonFXSwerve rear_right = new TalonFXSwerve(7, 3, 11, 149).invert(true, true);
private static final TalonFXSwerve front_left = new TalonFXSwerve(5, 1, 9, 3354).invert(false, true);
private static final TalonFXSwerve front_right = new TalonFXSwerve(8, 4, 12, 1921).invert(false, true);
private static final TalonFXSwerve rear_left = new TalonFXSwerve(6, 2, 10, 792).invert(false, true);
private static final TalonFXSwerve rear_right = new TalonFXSwerve(7, 3, 11, 147).invert(false, true);

private static final Pigeon gyro = new Pigeon(0);

private static final Pose2d initialPose = new Pose2d(0, 0, Rotation2d.fromRadians(0)); // TODO: Initial pose
private static final Vec2D size = new Vec2D(114, 114); // TODO: Robot size
private static final Vec2 size = new Vec2(114, 114); // TODO: Robot size

/**
* Creates a new Chassis.
Expand Down

0 comments on commit db980f3

Please sign in to comment.