Class AutonomousPath

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected boolean getBalls  
      protected boolean score  
    • Constructor Summary

      Constructors 
      Constructor Description
      AutonomousPath()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      edu.wpi.first.wpilibj2.command.SequentialCommandGroup generate​(boolean score, boolean getBalls)
      Generate command group using params
      protected abstract edu.wpi.first.wpilibj2.command.SequentialCommandGroup getCommand()
      Get the command to run
      abstract edu.wpi.first.wpilibj.geometry.Pose2d getStartingPose()
      Get the path's starting pose
      boolean shouldGetBalls()
      Get if the chooser has decided to pick up balls during this path
      boolean shouldScore()
      Get if the chooser has decided to score during this path
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • score

        protected boolean score
      • getBalls

        protected boolean getBalls
    • Constructor Detail

      • AutonomousPath

        public AutonomousPath()
    • Method Detail

      • generate

        public edu.wpi.first.wpilibj2.command.SequentialCommandGroup generate​(boolean score,
                                                                              boolean getBalls)
        Generate command group using params
        Parameters:
        score - Should score?
        getBalls - Should get balls?
      • getCommand

        protected abstract edu.wpi.first.wpilibj2.command.SequentialCommandGroup getCommand()
        Get the command to run
        Returns:
        Command
      • getStartingPose

        public abstract edu.wpi.first.wpilibj.geometry.Pose2d getStartingPose()
        Get the path's starting pose
        Returns:
        Starting pose
      • shouldScore

        public boolean shouldScore()
        Get if the chooser has decided to score during this path
        Returns:
        Should score?
      • shouldGetBalls

        public boolean shouldGetBalls()
        Get if the chooser has decided to pick up balls during this path
        Returns:
        Should pick up balls?