Quasics2021Code/MaeTester/src/main/cpp/RobotContainer.cpp
/*These Conditional Commands evaluate first whether there is
an error, then which alliance we're on, and then, based on what
path we're following, builds the correct Galactic Search Path
for the robot to follow.*/
These Conditional Commands evaluate first whether there is
an error, then which alliance we're on, and then, based on what
path we're following, builds the correct Galactic Search Path
for the robot to follow.
These Conditional Commands evaluate first whether there is an error then which alliance we ' re on and then based on what path we ' re following builds the correct Galactic Search Path for the robot to follow .
frc2::ConditionalCommand* RobotContainer::BuildBlueAlliancePaths() {
  frc2::Command* blueB = BuildGalacticSearchPath(
      "GSearchBBlue Part1.wpilib.json", "GSearchBBlue Part2.wpilib.json",
      "GSearchBBlue Part3.wpilib.json", "GSearchBBlue Part4.wpilib.json");
  frc2::Command* blueA = BuildGalacticSearchPath(
      "GSearchABlue Part1.wpilib.json", "GSearchABlue Part2.wpilib.json",
      "GSearchABlue Part3.wpilib.json", "GSearchABlue Part4.wpilib.json");
  return new frc2::ConditionalCommand(std::unique_ptr<frc2::Command>(blueA),
                                      std::unique_ptr<frc2::Command>(blueB),
                                      [this] { return RecognizePathA(); });
}
frc2 :: ConditionalCommand * RobotContainer :: BuildBlueAlliancePaths ( ) { frc2 :: Command * blueB = BuildGalacticSearchPath ( " " , " " , " " , " " ) ; frc2 :: Command * blueA = BuildGalacticSearchPath ( " " , " " , " " , " " ) ; return new frc2 :: ConditionalCommand ( std :: unique_ptr < frc2 :: Command > ( blueA ) , std :: unique_ptr < frc2 :: Command > ( blueB ) , [ this ] { return RecognizePathA ( ) ; } ) ; }
These Conditional Commands evaluate first whether there is
an error, then which alliance we're on, and then, based on what
path we're following, builds the correct Galactic Search Path
for the robot to follow.
These Conditional Commands evaluate first whether there is an error then which alliance we ' re on and then based on what path we ' re following builds the correct Galactic Search Path for the robot to follow .