Go to Post Long after we've forgotten that absurd pink bunny, Dave's other car is still on Mars. - Richard Wallace [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

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 07-02-2013, 08:42
ohhs4284 ohhs4284 is offline
Registered User
FRC #4284
 
Join Date: Jan 2013
Location: Cicinnati
Posts: 11
ohhs4284 is an unknown quantity at this point
Question 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.
Reply With Quote
  #2   Spotlight this post!  
Unread 07-02-2013, 09:00
notmattlythgoe's Avatar
notmattlythgoe notmattlythgoe is offline
Flywheel Police
AKA: Matthew Lythgoe
FRC #2363 (Triple Helix)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Newport News, VA
Posts: 1,715
notmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond repute
Re: Jaguars blink yellow is it my code?

That means that your jaguars are getting no communication. Are they plugged into the correct ports?
Reply With Quote
  #3   Spotlight this post!  
Unread 07-02-2013, 09:45
ohhs4284 ohhs4284 is offline
Registered User
FRC #4284
 
Join Date: Jan 2013
Location: Cicinnati
Posts: 11
ohhs4284 is an unknown quantity at this point
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.
Reply With Quote
  #4   Spotlight this post!  
Unread 07-02-2013, 09:54
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,753
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
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.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #5   Spotlight this post!  
Unread 07-02-2013, 10:28
ohhs4284 ohhs4284 is offline
Registered User
FRC #4284
 
Join Date: Jan 2013
Location: Cicinnati
Posts: 11
ohhs4284 is an unknown quantity at this point
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.
Reply With Quote
  #6   Spotlight this post!  
Unread 07-02-2013, 10:47
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,753
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Jaguars blink yellow is it my code?

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.
Attached Thumbnails
Click image for larger version

Name:	cRIO-ImagingToolNetconsole.png
Views:	17
Size:	72.5 KB
ID:	13841  
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 07-02-2013 at 10:50.
Reply With Quote
  #7   Spotlight this post!  
Unread 07-02-2013, 11:05
ohhs4284 ohhs4284 is offline
Registered User
FRC #4284
 
Join Date: Jan 2013
Location: Cicinnati
Posts: 11
ohhs4284 is an unknown quantity at this point
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?

Last edited by artdutra04 : 07-02-2013 at 20:30. Reason: merged back-to-back posts together
Reply With Quote
  #8   Spotlight this post!  
Unread 07-02-2013, 14:00
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,561
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
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.
Reply With Quote
  #9   Spotlight this post!  
Unread 07-02-2013, 15:18
ohhs4284 ohhs4284 is offline
Registered User
FRC #4284
 
Join Date: Jan 2013
Location: Cicinnati
Posts: 11
ohhs4284 is an unknown quantity at this point
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

Last edited by artdutra04 : 07-02-2013 at 20:30. Reason: Merged three back-to-back posts together
Reply With Quote
  #10   Spotlight this post!  
Unread 07-02-2013, 16:11
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,561
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
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.
Reply With Quote
Reply


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 09:51.

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