Class DifferentialGains
- java.lang.Object
-
- com.lightningrobotics.common.subsystem.drivetrain.LightningGains
-
- com.lightningrobotics.common.subsystem.drivetrain.differential.DifferentialGains
-
public class DifferentialGains extends LightningGains
-
-
Field Summary
-
Fields inherited from class com.lightningrobotics.common.subsystem.drivetrain.LightningGains
MAX_VOLTAGE
-
-
Constructor Summary
Constructors Constructor Description DifferentialGains()DifferentialGains(double maxSpeed, double maxAcceleration, double trackWidth, boolean[] leftInverts, boolean[] rightInverts, PIDFController driveController, FeedForwardController driveFFController)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FeedForwardControllergetFeedForwardController()DifferentialKinematicsgetKinematics()boolean[]getLeftInverts()PIDFControllergetPIDFController()boolean[]getRightInverts()doublegetTrackWidth()voidsetLeftInverts(boolean[] leftInverts)voidsetRightInverts(boolean[] rightInverts)voidsetTrackWidth(int trackWidth)-
Methods inherited from class com.lightningrobotics.common.subsystem.drivetrain.LightningGains
getMaxAcceleration, getMaxSpeed, setKinematics, setMaxAcceleration, setMaxSpeed
-
-
-
-
Constructor Detail
-
DifferentialGains
public DifferentialGains()
-
DifferentialGains
public DifferentialGains(double maxSpeed, double maxAcceleration, double trackWidth, boolean[] leftInverts, boolean[] rightInverts, PIDFController driveController, FeedForwardController driveFFController)
-
-
Method Detail
-
getKinematics
public DifferentialKinematics getKinematics()
- Overrides:
getKinematicsin classLightningGains
-
getTrackWidth
public double getTrackWidth()
- Overrides:
getTrackWidthin classLightningGains
-
setTrackWidth
public void setTrackWidth(int trackWidth)
-
getLeftInverts
public boolean[] getLeftInverts()
-
setLeftInverts
public void setLeftInverts(boolean[] leftInverts)
-
getRightInverts
public boolean[] getRightInverts()
-
setRightInverts
public void setRightInverts(boolean[] rightInverts)
-
getPIDFController
public PIDFController getPIDFController()
-
getFeedForwardController
public FeedForwardController getFeedForwardController()
-
-