View Single Post
  #1   Spotlight this post!  
Unread 03-05-2016, 07:04 PM
Oromus's Avatar
Oromus Oromus is offline
Lead Programmer, Community Liason
AKA: Ryan
FRC #1902 (Exploding Bacon)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2013
Location: Florida
Posts: 80
Oromus is a splendid one to beholdOromus is a splendid one to beholdOromus is a splendid one to beholdOromus is a splendid one to beholdOromus is a splendid one to beholdOromus is a splendid one to behold
Re: Java Deploy Error

The problem is here:

Code:
public void robotInit() {
    	
		oi = new OI();
       // autochooser = new SendableChooser();
        //autochooser.addDefault("Default Auto", new ExampleCommand());
//        chooser.addObject("My Auto", new MyAutoCommand());
       // SmartDashboard.putData("Auto mode", autochooser);
        
      startCompetition();
    }
Remove the startCompetition() line and it will fix the problem. robotInit() is called when you call startCompetition(), so calling startCompetition() in robotInit() causes an infinite loop (AKA, a StackOverflowError). Also, you shouldn't call startCompetition() anywhere, since that function is handled by FIRST.
__________________


2016 Roles: Manipulator, Strategy Co-Lead, Programmer
2016 Orlando Regional: Quarterfinalist (Captain w/ 1557, 5557 and 4352)
2016 Rocket City Regional: Quarterfinalist (w/ 283 and 34), Regional Chairman's Award Winner
2016 Championship: N/A (had fun and was inspired, that's what counts)
-------------
2015 Role: Programmer
2015 GSCR: Quarterfinalist (w/ 4189 and 4026), Regional Chairman's Award Winner
2015 Orlando Regional: Semifinalist (w/ 456 and 86), Imagery Award Winner
2015 Championship: Pit Safety Award Winner
Reply With Quote