mirror of
https://github.com/BroncBotz3481/YAGSL
synced 2026-06-19 06:21:40 +00:00
Upgrading to 2024.7.0
This commit is contained in:
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user