mirror of
https://github.com/BroncBotz3481/YAGSL
synced 2026-06-19 06:21:40 +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:
@@ -102,7 +102,6 @@ public class DeviceJson
|
||||
return new TalonSRXSwerve(id, isDriveMotor);
|
||||
default:
|
||||
throw new RuntimeException(type + " is not a recognized absolute encoder type.");
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -121,6 +120,7 @@ public class DeviceJson
|
||||
case "none":
|
||||
return null;
|
||||
}
|
||||
throw new RuntimeException("Could not create absolute encoder from data port of " + type + " id " + id);
|
||||
throw new RuntimeException(
|
||||
"Could not create absolute encoder from data port of " + type + " id " + id);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user