Help With illegalUseOfCommand Exception?

Hi,
I’m the programmer from team 2523, and I’ve run into a really frustrating error that nothing seems to fix. From what I can tell, the issue is that my driverunner subsystem, which runs methods from my driveTrain subsystem, does not “require” the driveTrain subsystem. The only thing is, it does, or at least should. I’ve checked quite a few times, and the “requires(Robot.driveTrain)” call is spelled correctly and in the right place. Is there anything else that could cause this?

Also, after that, the system says that “startCompetition()” should have handled the error.

Here is the full error (ignore the joystick error, ours is still in a box from last year :yikes: ):
********** Robot program starting **********
NT: server: client CONNECTED: 169.254.105.173 port 63780
Warning at org.usfirst.frc.team2523.robot.OI.<init>(OI.java:50): Joystick Button 1 on port 1 not available, check if controller is plugged in
Error at edu.wpi.first.wpilibj.RobotBase.main(RobotBase.java:249): ERROR Unhandled exception: edu.wpi.first.wpilibj.command.IllegalUseOfCommandException: A default command must require the subsystem at [edu.wpi.first.wpilibj.command.Subsystem.setDefaultCommand(Subsystem.java:101), org.usfirst.frc.team2523.robot.subsystems.DriveTrain.initDefaultCommand(DriveTrain.java:71), edu.wpi.first.wpilibj.command.Subsystem.getDefaultCommand(Subsystem.java:123), edu.wpi.first.wpilibj.command.Scheduler.run(Scheduler.java:223), org.usfirst.frc.team2523.robot.Robot.disabledPeriodic(Robot.java:95), edu.wpi.first.wpilibj.IterativeRobot.startCompetition(IterativeRobot.java:88), edu.wpi.first.wpilibj.RobotBase.main(RobotBase.java:247)]
WARNING: Robots don’t quit!
—> The startCompetition() method (or methods called by it) should have handled the exception above.

Your DriveTrain is setting a default command which doesn’t require it. The fix would be to modify your command so that it requires the drive train.