mirror of
https://github.com/BroncBotz3481/YAGSL
synced 2026-06-27 07:01:39 +00:00
Updated YAGSL
This commit is contained in:
@@ -95,6 +95,7 @@ public class CANCoderSwerve extends SwerveAbsoluteEncoder
|
||||
if (strength == MagnetFieldStrength.Invalid_Unknown || strength == MagnetFieldStrength.BadRange_RedLED)
|
||||
{
|
||||
readingError = true;
|
||||
DriverStation.reportWarning("CANCoder " + encoder.getDeviceID() + " reading was faulty.\n", false);
|
||||
return 0;
|
||||
}
|
||||
double angle = encoder.getAbsolutePosition();
|
||||
|
||||
Reference in New Issue
Block a user