Upgrading to 2024.7.0

This commit is contained in:
thenetworkgrinch
2024-11-06 00:10:07 +00:00
parent b8e06f205e
commit 9fe6551d88
14 changed files with 211 additions and 182 deletions

View File

@@ -8,28 +8,28 @@ import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
import java.util.Optional;
/**
* SwerveIMU interface for the Pigeon.
* SwerveIMU interface for the {@link WPI_PigeonIMU}.
*/
public class PigeonSwerve extends SwerveIMU
{
/**
* Pigeon v1 IMU device.
* {@link WPI_PigeonIMU} IMU device.
*/
WPI_PigeonIMU imu;
private final WPI_PigeonIMU imu;
/**
* Offset for the Pigeon.
* Offset for the {@link WPI_PigeonIMU}.
*/
private Rotation3d offset = new Rotation3d();
private Rotation3d offset = new Rotation3d();
/**
* Inversion for the gyro
*/
private boolean invertedIMU = false;
private boolean invertedIMU = false;
/**
* Generate the SwerveIMU for pigeon.
* Generate the SwerveIMU for {@link WPI_PigeonIMU}.
*
* @param canid CAN ID for the pigeon, does not support CANBus.
* @param canid CAN ID for the {@link WPI_PigeonIMU}, does not support CANBus.
*/
public PigeonSwerve(int canid)
{
@@ -126,7 +126,7 @@ public class PigeonSwerve extends SwerveIMU
}
/**
* Get the instantiated IMU object.
* Get the instantiated {@link WPI_PigeonIMU} IMU object.
*
* @return IMU object.
*/