Go to Post In my opinion, leaders do not need to be picked. They naturally emerge as time goes on and as more opportunities are presented to them. - Alex Golec [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #9   Spotlight this post!  
Unread 29-03-2016, 23:47
josephno1's Avatar
josephno1 josephno1 is offline
Registered User
FRC #3647
Team Role: Programmer
 
Join Date: Oct 2015
Rookie Year: 2015
Location: murica
Posts: 21
josephno1 is an unknown quantity at this point
Re: "Robot Code" won't turn green, but no errors are displayed

I had the same issue during the San Diego Competition.
Make sure all sensors that you are calling actually exist, it took me a while but I found that I was calling for a Sonic Sensor on Analog port 1 when it was on port 0.

I would just make a very simple program and seeing if that uploads

Code:
package org.usfirst.frc.team3647.robot;

import edu.wpi.first.wpilibj.BuiltInAccelerometer;

/**
 * The VM is configured to automatically run this class, and to call the
 * functions corresponding to each mode, as described in the IterativeRobot
 * documentation. If you change the name of this class or the package after
 * creating this project, you must also update the manifest file in the resource
 * directory.
 */

public class Robot extends IterativeRobot {

	private BuiltInAccelerometer accel = new BuiltInAccelerometer();
	
	public void robotInit() {
	
	}

	/**
	 * This function is called periodically during autonomous
	 */
	 public void autonomousInit(){
	    	
	    }
	
	public void autonomousPeriodic() {

	}

	/**
	 * This function is called periodically during operator control
	 */
	public void teleopPeriodic() {
		SmartDashboard.putData("Test", accel);
	}

	/**
	 * This function is called periodically during test mode
	 */
	public void testPeriodic() {

	}
}
__________________
Go Team 3647 Millennium Falcons!
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 22:31.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi