Updated Javadocs, added ability to push offset to absolute encoders.

This commit is contained in:
thenetworkgrinch
2023-12-12 10:48:54 -06:00
parent aef91407ea
commit f03926627d
123 changed files with 685 additions and 283 deletions

View File

@@ -130,7 +130,7 @@ public class DeviceJson
case "pigeon2":
return new Pigeon2Swerve(id, canbus != null ? canbus : "");
default:
throw new RuntimeException(type + " is not a recognized absolute encoder type.");
throw new RuntimeException(type + " is not a recognized imu/gyroscope type.");
}
}
@@ -181,7 +181,7 @@ public class DeviceJson
case "talonsrx":
return new TalonSRXSwerve(id, isDriveMotor);
default:
throw new RuntimeException(type + " is not a recognized absolute encoder type.");
throw new RuntimeException(type + " is not a recognized motor type.");
}
}
}