diff --git a/swervelib/bin/main/frc/team1711/swerve/subsystems/AutoSwerveDrive.class b/swervelib/bin/main/frc/team1711/swerve/subsystems/AutoSwerveDrive.class index ac76970..9d6ee51 100644 Binary files a/swervelib/bin/main/frc/team1711/swerve/subsystems/AutoSwerveDrive.class and b/swervelib/bin/main/frc/team1711/swerve/subsystems/AutoSwerveDrive.class differ diff --git a/swervelib/bin/main/frc/team1711/swerve/subsystems/GyroSwerveDrive.class b/swervelib/bin/main/frc/team1711/swerve/subsystems/GyroSwerveDrive.class index 37c9b61..01843e0 100644 Binary files a/swervelib/bin/main/frc/team1711/swerve/subsystems/GyroSwerveDrive.class and b/swervelib/bin/main/frc/team1711/swerve/subsystems/GyroSwerveDrive.class differ diff --git a/swervelib/bin/main/frc/team1711/swerve/subsystems/SwerveDrive$ControlsConfig.class b/swervelib/bin/main/frc/team1711/swerve/subsystems/SwerveDrive$ControlsConfig.class new file mode 100644 index 0000000..ecb25b8 Binary files /dev/null and b/swervelib/bin/main/frc/team1711/swerve/subsystems/SwerveDrive$ControlsConfig.class differ diff --git a/swervelib/bin/main/frc/team1711/swerve/subsystems/SwerveDrive$SwerveDrivingSpeeds.class b/swervelib/bin/main/frc/team1711/swerve/subsystems/SwerveDrive$SwerveDrivingSpeeds.class deleted file mode 100644 index e832a52..0000000 Binary files a/swervelib/bin/main/frc/team1711/swerve/subsystems/SwerveDrive$SwerveDrivingSpeeds.class and /dev/null differ diff --git a/swervelib/bin/main/frc/team1711/swerve/subsystems/SwerveDrive.class b/swervelib/bin/main/frc/team1711/swerve/subsystems/SwerveDrive.class index 678393f..4f16ed9 100644 Binary files a/swervelib/bin/main/frc/team1711/swerve/subsystems/SwerveDrive.class and b/swervelib/bin/main/frc/team1711/swerve/subsystems/SwerveDrive.class differ diff --git a/swervelib/build/classes/java/main/frc/team1711/swerve/subsystems/AutoSwerveDrive.class b/swervelib/build/classes/java/main/frc/team1711/swerve/subsystems/AutoSwerveDrive.class index 9ba0c59..9c028ef 100644 Binary files a/swervelib/build/classes/java/main/frc/team1711/swerve/subsystems/AutoSwerveDrive.class and b/swervelib/build/classes/java/main/frc/team1711/swerve/subsystems/AutoSwerveDrive.class differ diff --git a/swervelib/build/classes/java/main/frc/team1711/swerve/subsystems/GyroSwerveDrive.class b/swervelib/build/classes/java/main/frc/team1711/swerve/subsystems/GyroSwerveDrive.class index f72298c..e34d63b 100644 Binary files a/swervelib/build/classes/java/main/frc/team1711/swerve/subsystems/GyroSwerveDrive.class and b/swervelib/build/classes/java/main/frc/team1711/swerve/subsystems/GyroSwerveDrive.class differ diff --git a/swervelib/build/classes/java/main/frc/team1711/swerve/subsystems/SwerveDrive$ControlsConfig.class b/swervelib/build/classes/java/main/frc/team1711/swerve/subsystems/SwerveDrive$ControlsConfig.class new file mode 100644 index 0000000..dcf9d30 Binary files /dev/null and b/swervelib/build/classes/java/main/frc/team1711/swerve/subsystems/SwerveDrive$ControlsConfig.class differ diff --git a/swervelib/build/classes/java/main/frc/team1711/swerve/subsystems/SwerveDrive$SwerveDrivingSpeeds.class b/swervelib/build/classes/java/main/frc/team1711/swerve/subsystems/SwerveDrive$SwerveDrivingSpeeds.class deleted file mode 100644 index c9ec3d3..0000000 Binary files a/swervelib/build/classes/java/main/frc/team1711/swerve/subsystems/SwerveDrive$SwerveDrivingSpeeds.class and /dev/null differ diff --git a/swervelib/build/classes/java/main/frc/team1711/swerve/subsystems/SwerveDrive.class b/swervelib/build/classes/java/main/frc/team1711/swerve/subsystems/SwerveDrive.class index b115923..b0eaa6f 100644 Binary files a/swervelib/build/classes/java/main/frc/team1711/swerve/subsystems/SwerveDrive.class and b/swervelib/build/classes/java/main/frc/team1711/swerve/subsystems/SwerveDrive.class differ diff --git a/swervelib/build/docs/javadoc/allclasses-index.html b/swervelib/build/docs/javadoc/allclasses-index.html index b6dbe93..1f2c6f5 100644 --- a/swervelib/build/docs/javadoc/allclasses-index.html +++ b/swervelib/build/docs/javadoc/allclasses-index.html @@ -177,10 +177,11 @@
SwerveDrive
in
- SwerveDrive.userInputDrive(double, double, double, InputHandler)
.SwerveDrive.userInputDrive(double, double, double, ControlsConfig)
, along with
+ an InputHandler
which handles user-generated input.
SwerveDrive.SwerveDrivingSpeeds
-
-
-
-
-
-swerveDrivingSpeeds
SwerveDrive.ControlsConfig
AutoSwerveDrive(edu.wpi.first.wpilibj.interfaces.Gyro gyro,
+AutoSwerveDrive(edu.wpi.first.wpilibj.interfaces.Gyro gyro,
AutoSwerveWheel flWheel,
AutoSwerveWheel frWheel,
AutoSwerveWheel rlWheel,
AutoSwerveWheel rrWheel,
- double wheelbaseToTrackRatio,
- SwerveDrive.SwerveDrivingSpeeds swerveDrivingSpeeds)
+ double wheelbaseToTrackRatio)
AutoSwerveDrive
given AutoSwerveWheel
wheels.calibrateGyro, fieldRelativeUserInputDrive, getGyroAngle, resetGyro
+calibrateGyro, fieldRelativeUserInputDrive, getGyroAngle, resetGyro
autoDrive, initSendable, setSwerveDrivingSpeeds, steerAllWithinRange, steerAndDriveAll, stop, userInputDrive
autoDrive, initSendable, steerAllWithinRange, steerAndDriveAll, stop, userInputDrive
AutoSwerveDrive
given AutoSwerveWheel
wheels.rrWheel
- The rear right AutoSwerveWheel
wheelbaseToTrackRatio
- The distance between the centers of the left and right wheels divided
by the distance between the centers of the front and back wheelsswerveDrivingSpeeds
- The SwerveDrive.SwerveDrivingSpeeds
configurationSwerveDrive.SwerveDrivingSpeeds
-
-
-
-
-
-swerveDrivingSpeeds
SwerveDrive.ControlsConfig
GyroSwerveDrive(edu.wpi.first.wpilibj.interfaces.Gyro gyro,
+GyroSwerveDrive(edu.wpi.first.wpilibj.interfaces.Gyro gyro,
SwerveWheel flWheel,
SwerveWheel frWheel,
SwerveWheel rlWheel,
SwerveWheel rrWheel,
- double wheelbaseToTrackRatio,
- SwerveDrive.SwerveDrivingSpeeds swerveDrivingSpeeds)
+ double wheelbaseToTrackRatio)
GyroSwerveDrive
given SwerveWheel
wheels.void
fieldRelativeUserInputDrive(double strafeX,
+fieldRelativeUserInputDrive(double strafeX,
double strafeY,
double steering,
- InputHandler inputHandler)
+ SwerveDrive.ControlsConfig controlsConfig)
SwerveDrive
given strafing and steering inputs, all on the interval [-1, 1],
where +strafeY
is forwards and +strafeX
is to the right.autoDrive, initSendable, setSwerveDrivingSpeeds, steerAllWithinRange, steerAndDriveAll, stop, userInputDrive
+autoDrive, initSendable, steerAllWithinRange, steerAndDriveAll, stop, userInputDrive
GyroSwerveDrive
given SwerveWheel
wheels.rrWheel
- The rear right SwerveWheel
wheelbaseToTrackRatio
- The distance between the centers of the left and right wheels divided
by the distance between the centers of the front and back wheelsswerveDrivingSpeeds
- The SwerveDrive.SwerveDrivingSpeeds
configurationpublic void fieldRelativeUserInputDrive(double strafeX, double strafeY, double steering, - InputHandler inputHandler)+ SwerveDrive.ControlsConfig controlsConfig)
SwerveDrive
given strafing and steering inputs, all on the interval [-1, 1],
where +strafeY
is forwards and +strafeX
is to the right. Inputs are assumed to be from a user-controlled
- device, so SwerveDrive.SwerveDrivingSpeeds
are applied, along with an InputHandler
. Strafing is
- field relative, not robot relative.SwerveDrive.ControlsConfig
is applied. Strafing is field relative, not robot relative.
strafeX
- The strafing speed in the x directionstrafeY
- The strafing speed in the y directionsteering
- The steering speed, where a positive value steers clockwise from a top-down point of viewinputHandler
- The InputHandler
to be used for converting user inputs into usable outputs.controlsConfig
- The ControlsConfig
to be used for relative driving speeds and processing of user inputsSwerveDrive.userInputDrive(double, double, double, InputHandler)
,
+SwerveDrive.userInputDrive(double, double, double, ControlsConfig)
,
SwerveDrive.steerAndDriveAll(double, double)