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

@@ -11,7 +11,7 @@ import java.util.Optional;
import swervelib.telemetry.Alert;
/**
* Communicates with the NavX as the IMU.
* Communicates with the NavX({@link AHRS}) as the IMU.
*/
public class NavXSwerve extends SwerveIMU
{
@@ -34,7 +34,7 @@ public class NavXSwerve extends SwerveIMU
private Alert navXError;
/**
* Constructor for the NavX swerve.
* Constructor for the NavX({@link AHRS}) swerve.
*
* @param port Serial Port to connect to.
*/
@@ -57,7 +57,7 @@ public class NavXSwerve extends SwerveIMU
}
/**
* Constructor for the NavX swerve.
* Constructor for the NavX({@link AHRS}) swerve.
*
* @param port SPI Port to connect to.
*/
@@ -79,7 +79,7 @@ public class NavXSwerve extends SwerveIMU
}
/**
* Constructor for the NavX swerve.
* Constructor for the NavX({@link AHRS}) swerve.
*
* @param port I2C Port to connect to.
*/
@@ -101,7 +101,8 @@ public class NavXSwerve extends SwerveIMU
}
/**
* Reset IMU to factory default.
* Reset offset to current gyro reading. Does not call NavX({@link AHRS#reset()}) because it has been reported to be
* too slow.
*/
@Override
public void factoryDefault()
@@ -188,7 +189,7 @@ public class NavXSwerve extends SwerveIMU
}
/**
* Get the instantiated IMU object.
* Get the instantiated NavX({@link AHRS}) IMU object.
*
* @return IMU object.
*/