mirror of
https://github.com/BroncBotz3481/YAGSL
synced 2026-06-19 06:21:40 +00:00
Update to 2024.4.8.5
This commit is contained in:
@@ -450,8 +450,8 @@ public class SwerveDrive
|
||||
|
||||
/**
|
||||
* The primary method for controlling the drivebase. Takes a {@link ChassisSpeeds}, and calculates and commands module
|
||||
* states accordingly. Can use either open-loop or closed-loop velocity control for the wheel velocities. Also has
|
||||
* field- and robot-relative modes, which affect how the translation vector is used.
|
||||
* states accordingly. Can use either open-loop or closed-loop velocity control for the wheel velocities. Applies
|
||||
* heading correction if enabled and necessary.
|
||||
*
|
||||
* @param velocity The chassis speeds to set the robot to achieve.
|
||||
* @param isOpenLoop Whether to use closed-loop velocity control. Set to true to disable closed-loop.
|
||||
@@ -547,7 +547,7 @@ public class SwerveDrive
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the module states (azimuth and velocity) directly. Used primarily for auto pathing.
|
||||
* Set the module states (azimuth and velocity) directly.
|
||||
*
|
||||
* @param desiredStates A list of SwerveModuleStates to send to the modules.
|
||||
* @param isOpenLoop Whether to use closed-loop velocity control. Set to true to disable closed-loop.
|
||||
|
||||
@@ -157,7 +157,7 @@ public class NavXSwerve extends SwerveIMU
|
||||
@Override
|
||||
public Rotation3d getRotation3d()
|
||||
{
|
||||
return gyro.getRotation3d().minus(offset);
|
||||
return getRawRotation3d().minus(offset);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user