Updated YAGSL to contain NavX fix, center of rotation, and warnings under certain circumstances.

This commit is contained in:
thenetworkgrinch
2023-11-09 20:53:40 -06:00
parent a0d8d440e3
commit 035dba4fe2
113 changed files with 430 additions and 264 deletions

View File

@@ -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));
}