SwerveModule

public final class SwerveModule

Represents a swerve module used in a swerve drive system.

Constructors

Link copied to clipboard
public SwerveModule SwerveModule(Integer driveId, Integer steerId, Integer canCoderID, Double canCoderDriveStraightSteerSetPoint)

Properties

Link copied to clipboard
private final SwerveModulePosition position

Gets the current position of the swerve module.

Link copied to clipboard
private SwerveModuleState state

Functions

Link copied to clipboard
public final Unit applyTelePIDValues()
Link copied to clipboard
public final SwerveModulePosition getPosition()
Link copied to clipboard
public final SwerveModuleState getState()
Link copied to clipboard
public final Unit initializeAlarms(Integer driveID, Integer steerID, Integer canCoderID)
Link copied to clipboard
Link copied to clipboard
public final Unit resetDrivePosition()

Resets the drive motor position to zero.

Link copied to clipboard
public final Unit setAutoPID()

Sets the PID values for autonomous mode.

Link copied to clipboard
public final Unit setDrivePID(ERROR CLASS: Symbol not found for Pingu pid, Double velocity)

Sets the drive PID values.

Link copied to clipboard
public final Unit setState(SwerveModuleState value)
Link copied to clipboard
public final Unit setSteerPID(ERROR CLASS: Symbol not found for Pingu pid, Double velocity)

Sets the steer PID values.

Link copied to clipboard
public final Unit setTelePID()

Sets the PID values for teleoperation mode.

Link copied to clipboard
public final Unit stop()

Stops the swerve module motors.

Link copied to clipboard
public final Unit updateTelePID()