Skip to content

Commit

Permalink
Added missing javadocs
Browse files Browse the repository at this point in the history
  • Loading branch information
thenetworkgrinch committed Oct 8, 2024
1 parent de7a535 commit 1677836
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main/java/swervelib/SwerveDrive.java
Original file line number Diff line number Diff line change
Expand Up @@ -870,7 +870,7 @@ public void setMotorIdleMode(boolean brake)

/**
* Set the maximum speed of the drive motors, modified {@link SwerveDrive#maxSpeedMPS} which is used for the
* {@link SwerveDrive#setRawModuleStates(SwerveModuleState[], boolean)} function and
* {@link SwerveDrive#setRawModuleStates(SwerveModuleState[], ChassisSpeeds, boolean)} function and
* {@link SwerveController#getTargetSpeeds(double, double, double, double, double)} functions. This function overrides
* what was placed in the JSON and could damage your motor/robot if set too high or unachievable rates.
*
Expand Down Expand Up @@ -898,7 +898,7 @@ public void setMaximumSpeed(double maximumSpeed, boolean updateModuleFeedforward

/**
* Set the maximum speed of the drive motors, modified {@link SwerveDrive#maxSpeedMPS} which is used for the
* {@link SwerveDrive#setRawModuleStates(SwerveModuleState[], boolean)} function and
* {@link SwerveDrive#setRawModuleStates(SwerveModuleState[], ChassisSpeeds, boolean)} function and
* {@link SwerveController#getTargetSpeeds(double, double, double, double, double)} functions. This function overrides
* what was placed in the JSON and could damage your motor/robot if set too high or unachievable rates. Overwrites the
* {@link SwerveModule#setFeedforward(SimpleMotorFeedforward)}.
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/swervelib/imu/IMUVelocity.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
import edu.wpi.first.wpilibj.Notifier;
import swervelib.math.IMULinearMovingAverageFilter;

/**
* Generic IMU Velocity filter.
*/
public class IMUVelocity {
/**
* Swerve IMU.
Expand Down Expand Up @@ -63,6 +66,7 @@ public IMUVelocity(SwerveIMU gyro, double periodSeconds, int averagingTaps)
* Other gyroscopes will default to 50hz and 5 taps. For custom rates please use the IMUVelocity constructor.
*
* @param gyro The SwerveIMU gyro.
* @return {@link IMUVelocity} for the given gyro with adjusted period readings for velocity.
*/
public static IMUVelocity createIMUVelocity(SwerveIMU gyro)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public IMULinearMovingAverageFilter(int bufferLength)

/**
* Add a value to the DoubleCircularBuffer
* @param input
* @param input Value to add
*/
public void addValue(double input)
{
Expand Down

0 comments on commit 1677836

Please sign in to comment.