mirror of
https://github.com/BroncBotz3481/YAGSL
synced 2026-07-01 07:21:39 +00:00
Addressing issue #7 by reading CANCoder values until successful with 10ms delay between readings. Fall back to reading relative encoder.
This commit is contained in:
@@ -27,7 +27,8 @@ public class AnalogGyroSwerve extends SwerveIMU
|
||||
{
|
||||
if (!(channel == 0 || channel == 1))
|
||||
{
|
||||
throw new RuntimeException("Analog Gyroscope must be attached to port 0 or 1 on the roboRIO.\n");
|
||||
throw new RuntimeException(
|
||||
"Analog Gyroscope must be attached to port 0 or 1 on the roboRIO.\n");
|
||||
}
|
||||
gyro = new AnalogGyro(channel);
|
||||
SmartDashboard.putData(gyro);
|
||||
|
||||
Reference in New Issue
Block a user