Skip to content

Commit

Permalink
added speedometer velocity readings on smartdashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
elvizer committed Apr 1, 2024
1 parent 95c71a9 commit 5e1f7b0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/frc/robot/subsystems/SwerveDriveSubsystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,9 @@ public void initSendable(SendableBuilder builder) {
});

SmartDashboard.putNumber("SWERVE TRIM", _swerveTrim);
SmartDashboard.putNumber("SPEEDOMETER X", _gyro.getVelocityX()); // Velocity read by the gyro (I added all three bc the axis might be different for the gyro)
SmartDashboard.putNumber("SPEEDOMETER Y", _gyro.getVelocityY());
SmartDashboard.putNumber("SPEEDOMETER Z", _gyro.getVelocityZ());
}

@Override
Expand Down

0 comments on commit 5e1f7b0

Please sign in to comment.