Class MotionConstraints
- java.lang.Object
-
- frc.lib5k.kinematics.motionprofiling.MotionConstraints
-
public class MotionConstraints extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description MotionConstraints(double max_velocity, double max_acceleration, double max_jerk)Create a MotionConstraints object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetMaxAccel()doublegetMaxJerk()doublegetMaxVelocity()voidsetMaxAccel(double max_acc)voidsetMaxJerk(double max_jerk)voidsetMaxVelocity(double max_vel)
-
-
-
Constructor Detail
-
MotionConstraints
public MotionConstraints(double max_velocity, double max_acceleration, double max_jerk)Create a MotionConstraints object- Parameters:
max_velocity- Maximum velocity in m/smax_acceleration- Maximum acceleration in m/s/smax_jerk- Maximum jerk in m/s/s/s (A good starting point is 60)
-
-
Method Detail
-
getMaxAccel
public double getMaxAccel()
-
setMaxAccel
public void setMaxAccel(double max_acc)
-
getMaxJerk
public double getMaxJerk()
-
setMaxJerk
public void setMaxJerk(double max_jerk)
-
getMaxVelocity
public double getMaxVelocity()
-
setMaxVelocity
public void setMaxVelocity(double max_vel)
-
-