Package frc.lib5k.kinematics
Class DriveConstraints
- java.lang.Object
-
- frc.lib5k.kinematics.DriveConstraints
-
public class DriveConstraints extends java.lang.Object
Used to set bounds for robot movement
-
-
Constructor Summary
Constructors Constructor Description DriveConstraints(double minVelocity, double maxVelocity)
DriveConstraints(double minVelocity, double maxVelocity, double maxTurn)
Robot movement constraints
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getMaxTurn()
double
getMaxVel()
double
getMinVel()
void
setMaxTurn(double turn)
void
setMaxVel(double max)
void
setMinVel(double min)
-
-
-
Constructor Detail
-
DriveConstraints
public DriveConstraints(double minVelocity, double maxVelocity)
-
DriveConstraints
public DriveConstraints(double minVelocity, double maxVelocity, double maxTurn)
Robot movement constraints- Parameters:
minVelocity
- Minimum velocity (this should usually be 0)maxVelocity
- Maximum velocitymaxTurn
- Maximum turn rate
-
-