Class ShooterProjectile
java.lang.Object
com.flarerobotics.lib.control.shooter.data.ShooterProjectile
A class containing physical parameters for a projectile shot from the shooter.
-
Field Summary
FieldsModifier and TypeFieldDescriptionboolean
double
edu.wpi.first.math.geometry.Pose3d
double
-
Constructor Summary
ConstructorsConstructorDescriptionShooterProjectile
(ShooterProjectileType type, Vector3 initialVelocity, edu.wpi.first.math.geometry.Pose3d startingPose) Constructs a new ShooterProjectile. -
Method Summary
-
Field Details
-
velocity
-
acceleration
-
pose
public edu.wpi.first.math.geometry.Pose3d pose -
lastUpdate
public double lastUpdate -
shotAt
public double shotAt -
isFrozen
public boolean isFrozen
-
-
Constructor Details
-
ShooterProjectile
public ShooterProjectile(ShooterProjectileType type, Vector3 initialVelocity, edu.wpi.first.math.geometry.Pose3d startingPose) Constructs a new ShooterProjectile.- Parameters:
type
- The shooter projectile type.initialVelocity
- The initial shooting velocity.startingPose
- The starting pose, the end of the barrel.
-
-
Method Details
-
getType
-
getId
-