Closed LER-Programming closed 1 year ago
most relevantly,
Error at frc.robot.RobotContainer.getAutonomousCommand(RobotContainer.java:194): Unhandled exception: java.lang.IllegalArgumentException: Commands that have been composed may not be added to another composition or scheduled individually!
ERROR 1 Unhandled exception: java.lang.IllegalArgumentException: Commands that have been composed may not be added to another composition or scheduled individually! frc.robot.RobotContainer.getAutonomousCommand(RobotContainer.java:194)
7:55:43.436 PM See https://wpilib.org/stacktrace for more information. The above stacktrace can help determine where the error occurred. Warning at edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:358): The robot program quit unexpectedly. This is usually due to a code error. at frc.robot.Main.main(Main.java:13) at edu.wpi.first.wpilibj.RobotBase.startRobot(RobotBase.java:433) at edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:343) at edu.wpi.first.wpilibj.TimedRobot.startCompetition(TimedRobot.java:130) at edu.wpi.first.wpilibj.IterativeRobotBase.loopFunc(IterativeRobotBase.java:320) at frc.robot.Robot.autonomousInit(Robot.java:51) at frc.robot.RobotContainer.getAutonomousCommand(RobotContainer.java:194) at edu.wpi.first.wpilibj2.command.Command.andThen(Command.java:187) at edu.wpi.first.wpilibj2.command.SequentialCommandGroup.(SequentialCommandGroup.java:34) at edu.wpi.first.wpilibj2.command.SequentialCommandGroup.addCommands(SequentialCommandGroup.java:44) at edu.wpi.first.wpilibj2.command.CommandScheduler.registerComposedCommands(CommandScheduler.java:569) ERROR 1 The startCompetition() method (or methods called by it) should have handled the exception above. edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:365) at edu.wpi.first.wpilibj2.command.CommandScheduler.requireNotComposed(CommandScheduler.java:618) Warning 1 The robot program quit unexpectedly. This is usually due to a code error.
The above stacktrace can help determine where the error occurred.
See https://wpilib.org/stacktrace for more information. edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:358) Error at frc.robot.RobotContainer.getAutonomousCommand(RobotContainer.java:194): Unhandled exception: java.lang.IllegalArgumentException: Commands that have been composed may not be added to another composition or scheduled individually! ERROR 1 Unhandled exception: java.lang.IllegalArgumentException: Commands that have been composed may not be added to another composition or scheduled individually! frc.robot.RobotContainer.getAutonomousCommand(RobotContainer.java:194)