mirror of
https://github.com/BroncBotz3481/YAGSL
synced 2026-07-01 07:21:39 +00:00
Updated YAGSL to contain NavX fix, center of rotation, and warnings under certain circumstances.
This commit is contained in:
@@ -181,6 +181,10 @@ public class SparkMaxSwerve extends SwerveMotor
|
||||
{
|
||||
if (encoder.getAbsoluteEncoder() instanceof AbsoluteEncoder)
|
||||
{
|
||||
DriverStation.reportWarning(
|
||||
"IF possible configure the duty cycle encoder offset in the REV Hardware Client instead of using the" +
|
||||
" absoluteEncoderOffset in the Swerve Module JSON!",
|
||||
false);
|
||||
absoluteEncoder = (AbsoluteEncoder) encoder.getAbsoluteEncoder();
|
||||
configureSparkMax(() -> pid.setFeedbackDevice(absoluteEncoder));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user