Package com.crossbotics.ftchelper.vision
Class MovingShot.Result
java.lang.Object
com.crossbotics.ftchelper.vision.MovingShot.Result
- Enclosing class:
MovingShot
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
FieldsModifier and TypeFieldDescriptionfinal doubleWhere to aim, degrees (counterclockwise + = left): withMovingShot.onTurret()the turret angle from the robot's front; otherwise how far to turn the whole robot (0 = it faces right).final doubleInches from the shooter to the virtual goal: the distance for the launcher's speed.final doubleThe flight time used, seconds.final doubleHow many degrees the robot's motion moved the aim (the aim minus the aim of a still robot).final doubleHow far the aim point moved because the piece keeps the shooter's speed (speed x flight time), inches. -
Method Summary
-
Field Details
-
aimDeg
public final double aimDegWhere to aim, degrees (counterclockwise + = left): withMovingShot.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 distanceInInches from the shooter to the virtual goal: the distance for the launcher's speed. -
leadDeg
public final double leadDegHow many degrees the robot's motion moved the aim (the aim minus the aim of a still robot). -
leadIn
public final double leadInHow far the aim point moved because the piece keeps the shooter's speed (speed x flight time), inches. -
flightSec
public final double flightSecThe flight time used, seconds.
-
-
Method Details