Class SwerveKinematics
- java.lang.Object
-
- com.lightningrobotics.common.geometry.kinematics.swerve.SwerveKinematics
-
- All Implemented Interfaces:
LightningKinematics
public class SwerveKinematics extends java.lang.Object implements LightningKinematics
-
-
Constructor Summary
Constructors Constructor Description SwerveKinematics(SwerveGains gains)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DrivetrainSpeed
forward(DrivetrainState state)
DrivetrainState
inverse(DrivetrainSpeed speed)
-
-
-
Constructor Detail
-
SwerveKinematics
public SwerveKinematics(SwerveGains gains)
-
-
Method Detail
-
inverse
public DrivetrainState inverse(DrivetrainSpeed speed)
- Specified by:
inverse
in interfaceLightningKinematics
-
forward
public DrivetrainSpeed forward(DrivetrainState state)
- Specified by:
forward
in interfaceLightningKinematics
-
-