Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Jaguars blink yellow is it my code? (http://www.chiefdelphi.com/forums/showthread.php?t=112954)

ohhs4284 07-02-2013 08:42

Jaguars blink yellow is it my code?
 
I am having no response from my Jaguars (blinking yellow) after switching to netbeans from eclipse and uploading code and it doesn't seem to be a deploy issue anymore. Anything will be greatly appreciated. Thank you.

notmattlythgoe 07-02-2013 09:00

Re: Jaguars blink yellow is it my code?
 
That means that your jaguars are getting no communication. Are they plugged into the correct ports?

ohhs4284 07-02-2013 09:45

Re: Jaguars blink yellow is it my code?
 
It worked when we were in eclipse but after we moved to netbeans after we got the plugins and got it to deploy the jags no longer respond.

Mark McLeod 07-02-2013 09:54

Re: Jaguars blink yellow is it my code?
 
Use Netconsole to check if you have error messages from your Java program.

The blinking Jags coupled with Green Driver Station status + Enabled robot, might mean that the PWM/Jag's aren't created properly in the code.

ohhs4284 07-02-2013 10:28

Re: Jaguars blink yellow is it my code?
 
To be honest I have no idea what to do with Netconsole. Could please give instructions to get what you would need to know? Thank you.

Mark McLeod 07-02-2013 10:47

Re: Jaguars blink yellow is it my code?
 
1 Attachment(s)
Netconsole was installed as part of the Utilities Update.
You'll find it under Start->All Programs->Netconsole for cRIO

Before using it you have to first have told the cRIO Imaging Tool that you want to use Netconsole (it downloads the cRIO side of Netconsole to the cRIO). See the attached picture. You only have to do this when you are imaging the cRIO. You don't have to do the reformatting part, just specify your language again and check Netconsole.

Start up Netconsole, then reset or boot your cRIO and you'll get a stream of OS messages as the cRIO loads VxWorks and then loads your program.
Some of the messages will be quite obscure, specifying version numbers and software being loaded, just look for later ones taking about Java.

ohhs4284 07-02-2013 11:05

Im just getting a black screen after rebooting the Crio and I reformatted it with the newest flash and with netconsul checked and reuploded the code. Am I doing something wrong?

Doesnt seem to be any java errors. only things that are possibly concerning are:

task 0xd0d9f8 (sysapi-rpc) deleted: errno=0 (0) status=0 (0)

Default robotInit() method running, consider providing your own
Default disabled() method running, consider providing your own

Any idea as to what these could possibly mean? If anything at all?

Joe Ross 07-02-2013 14:00

Re: Jaguars blink yellow is it my code?
 
Rather then trying to guess what messages are relevant, it would be better to post the whole thing. It would also help to post your code.

I don't see anything in those messages that indicate a problem.

ohhs4284 07-02-2013 15:18

http://s1358.beta.photobucket.com/us...tml?sort=3&o=2
http://s1358.beta.photobucket.com/us...tml?sort=3&o=1
http://s1358.beta.photobucket.com/us...tml?sort=3&o=0

This is the output I see.

http://s1358.beta.photobucket.com/us...s4284/library/

this is our output. Thanks for the help so far guys.

Quote:

package edu.wpi.first.wpilibj.templates;

import edu.wpi.first.wpilibj.Jaguar;
import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.RobotDrive;
import edu.wpi.first.wpilibj.Servo;
import edu.wpi.first.wpilibj.SimpleRobot;
import edu.wpi.first.wpilibj.camera.AxisCamera;

public class ASimpleJavaBot extends SimpleRobot {

Joystick leftStick = new Joystick(1);
AxisCamera cam= AxisCamera.getInstance("10.42.84.11");
RobotDrive robotDrive = new RobotDrive(3,4,1,2);
public ASimpleJavaBot(){
getWatchdog().setExpiration(0.1);
}

public void operatorControl() {
while (isOperatorControl() && isEnabled()) {
getWatchdog().feed();
robotDrive.arcadeDrive(leftStick.getY(),-1*leftStick.getX());

}

}
}
This is the watered down version we are working with just for driving.This is what is failing

Joe Ross 07-02-2013 16:11

Re: Jaguars blink yellow is it my code?
 
What image version is your cRIO running? It should be 47. What netbeans plugins are you using? They should be 2013.0.417.

My guess from the netconsole output is that one or both of those isn't correct.

I don't see anything obviously wrong in your code.


All times are GMT -5. The time now is 09:51.

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