Package frc.lib.util
Class Scoring
java.lang.Object
frc.lib.util.Scoring
Class containing scoring functions
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanIs the game piece a cubestatic Scoring.GamePieceGet the type of game piece based off the desired scoring positionstatic Pose2dGet initial position prior to scoring that slightly further back to not hit the score line.static Pose2dgetScoreAlignment(double xPosition) Get the Pose2d to align to scorestatic doubleGet the distance from the goals based on which level and game piecestatic ArmPositionGet Arm Angle, Elevator Position, Wrist Angle based on which game piece and level to scorestatic Pose2dGet final scoring position to release game piece
-
Constructor Details
-
Scoring
public Scoring()
-
-
Method Details
-
getGamePiece
Get the type of game piece based off the desired scoring position- Returns:
- Game Piece
-
gamePieceIsCube
public static boolean gamePieceIsCube()Is the game piece a cube- Returns:
- True if the game piece is a cube
-
getScoreDistance
public static double getScoreDistance()Get the distance from the goals based on which level and game piece- Returns:
- distance in Inches from score barrier
-
getScoreAlignment
Get the Pose2d to align to score- Parameters:
xPosition- The distance from the line of April Tags- Returns:
- Position to align to score
-
getScorPose2d
Get final scoring position to release game piece- Returns:
- Position to release game piece
-
getPreScorePosition
Get initial position prior to scoring that slightly further back to not hit the score line.- Returns:
- Posi
-
getScoreParameters
Get Arm Angle, Elevator Position, Wrist Angle based on which game piece and level to score- Returns:
- ArmPosition object
-