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:
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user