Class MovingShot.Result

java.lang.Object
com.crossbotics.ftchelper.vision.MovingShot.Result
Enclosing class:
MovingShot

public static final class MovingShot.Result extends Object
What MovingShot.solve(double, double, double, double, double, double) gives: where to aim, how far to shoot, and how big the lead is.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final double
    Where to aim, degrees (counterclockwise + = left): with MovingShot.onTurret() the turret angle from the robot's front; otherwise how far to turn the whole robot (0 = it faces right).
    final double
    Inches from the shooter to the virtual goal: the distance for the launcher's speed.
    final double
    The flight time used, seconds.
    final double
    How many degrees the robot's motion moved the aim (the aim minus the aim of a still robot).
    final double
    How far the aim point moved because the piece keeps the shooter's speed (speed x flight time), inches.
  • Method Summary

    Modifier and Type
    Method
    Description
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • aimDeg

      public final double aimDeg
      Where to aim, degrees (counterclockwise + = left): with MovingShot.onTurret() the turret angle from the robot's front; otherwise how far to turn the whole robot (0 = it faces right).
    • distanceIn

      public final double distanceIn
      Inches from the shooter to the virtual goal: the distance for the launcher's speed.
    • leadDeg

      public final double leadDeg
      How many degrees the robot's motion moved the aim (the aim minus the aim of a still robot).
    • leadIn

      public final double leadIn
      How far the aim point moved because the piece keeps the shooter's speed (speed x flight time), inches.
    • flightSec

      public final double flightSec
      The flight time used, seconds.
  • Method Details