Package frc.robot.shotdata
Class SimulatedShot
java.lang.Object
frc.robot.shotdata.SimulatedShot
Simulated 2d trajectory incorporating drag and magnus effect
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal AngularVelocityfinal Anglefinal LinearVelocityfinal doublefinal org.ejml.data.DMatrix4 -
Constructor Summary
ConstructorsConstructorDescriptionSimulatedShot(Angle exitAngle, LinearVelocity exitVelocity, AngularVelocity backspin) Create new simulated shots -
Method Summary
-
Field Details
-
exitAngle
-
exitVelocity
-
backspin
-
omega
public final double omega -
state
public final org.ejml.data.DMatrix4 state
-
-
Constructor Details
-
SimulatedShot
Create new simulated shots
-
-
Method Details
-
step
public void step(double dt) Integrate forces using Euler's method
-