SwerveWheel

class SwerveWheel(driveMotor: GenericDriveMotor, turnMotor: GenericTurnMotor, drivePID: PIDController, turnPID: PIDController, configuration: SwerveModuleConfiguration)

A class representing a single swerve wheel (module). This contains the turning and driving motors.

Parameters

driveMotor

The motor to use for driving

turnMotor

The motor to use for turning

drivePID

The PID controller to use for driving

turnPID

The PID controller to use for turning

configuration

The configuration for this module

See also

Constructors

Link copied to clipboard
constructor(driveMotor: GenericDriveMotor, turnMotor: GenericTurnMotor, drivePID: PIDController, turnPID: PIDController, configuration: SwerveModuleConfiguration)

Functions

Link copied to clipboard
fun drive(inputSpeed: Double, inputAngle: Double)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard