Class ShooterProjectile

java.lang.Object
com.flarerobotics.lib.control.shooter.data.ShooterProjectile

public class ShooterProjectile extends Object
A class containing physical parameters for a projectile shot from the shooter.
  • Field Details

    • velocity

      public Vector3 velocity
    • acceleration

      public Vector3 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