Class SwerveGains
- java.lang.Object
 - 
- com.lightningrobotics.common.subsystem.drivetrain.LightningGains
 - 
- com.lightningrobotics.common.subsystem.drivetrain.swerve.SwerveGains
 
 
 
- 
public class SwerveGains extends LightningGains
 
- 
- 
Field Summary
- 
Fields inherited from class com.lightningrobotics.common.subsystem.drivetrain.LightningGains
MAX_VOLTAGE 
 - 
 
- 
Constructor Summary
Constructors Constructor Description SwerveGains()SwerveGains(double width, double length, double maxSpeed, double maxRealSpeed, double maxAcceleration, double maxAngularSpeed, boolean[] turnMotorInverts, boolean[] driveMotorInverts) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean[]getDriveMotorInverts()doublegetLength()doublegetMaxAngularSpeed()doublegetMaxRealSpeed()boolean[]getTurnMotorInverts()doublegetWidth()voidsetDriveMotorInverts(boolean[] driveMotorInverts)voidsetLength(double length)voidsetMaxAngularSpeed(double maxAngularSpeed)voidsetMaxRealSpeed(double maxRealSpeed)voidsetTurnMotorInverts(boolean[] turnMotorInverts)voidsetWidth(double width)- 
Methods inherited from class com.lightningrobotics.common.subsystem.drivetrain.LightningGains
getKinematics, getMaxAcceleration, getMaxSpeed, getTrackWidth, setKinematics, setMaxAcceleration, setMaxSpeed 
 - 
 
 - 
 
- 
- 
Method Detail
- 
getWidth
public double getWidth()
 
- 
setWidth
public void setWidth(double width)
 
- 
getLength
public double getLength()
 
- 
setLength
public void setLength(double length)
 
- 
setMaxAngularSpeed
public void setMaxAngularSpeed(double maxAngularSpeed)
 
- 
getMaxAngularSpeed
public double getMaxAngularSpeed()
 
- 
getTurnMotorInverts
public boolean[] getTurnMotorInverts()
 
- 
setTurnMotorInverts
public void setTurnMotorInverts(boolean[] turnMotorInverts)
 
- 
getDriveMotorInverts
public boolean[] getDriveMotorInverts()
 
- 
setDriveMotorInverts
public void setDriveMotorInverts(boolean[] driveMotorInverts)
 
- 
getMaxRealSpeed
public double getMaxRealSpeed()
 
- 
setMaxRealSpeed
public void setMaxRealSpeed(double maxRealSpeed)
 
 - 
 
 -