Go to Post Oh... and congratulations FIRST, for launching the biggest shinny object of distraction just days before FRC kick-off. ;) - Michael Sperber [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 21-01-2010, 14:34
dnrobotics11 dnrobotics11 is offline
Registered User
FRC #2589
 
Join Date: Mar 2008
Location: Massachusetts
Posts: 55
dnrobotics11 is an unknown quantity at this point
DS / WindRiver problem

Hey everybody,

I was successful in linking the cRIO and driver station and it says that i have comms and have robot code. I had downloaded the default code to the robot but I am unable to get the jaguars to react to the joysticks. is there anything i need to set up on the driver station (settings or changes) that will make the code work? last year i didn't have this problem but now i cant make the code do anything. Thanks for the help.
  #2   Spotlight this post!  
Unread 21-01-2010, 15:16
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: DS / WindRiver problem

Quote:
Originally Posted by dnrobotics11 View Post
is there anything i need to set up on the driver station (settings or changes) that will make the code work?
You need to click the ENABLE button on the Driver Station.
  #3   Spotlight this post!  
Unread 21-01-2010, 16:15
dnrobotics11 dnrobotics11 is offline
Registered User
FRC #2589
 
Join Date: Mar 2008
Location: Massachusetts
Posts: 55
dnrobotics11 is an unknown quantity at this point
Re: DS / WindRiver problem

ya i know that...it was enabled
  #4   Spotlight this post!  
Unread 21-01-2010, 16:17
dnrobotics11 dnrobotics11 is offline
Registered User
FRC #2589
 
Join Date: Mar 2008
Location: Massachusetts
Posts: 55
dnrobotics11 is an unknown quantity at this point
Re: DS / WindRiver problem

anyone know of any reasons why the code doesn't seem to work?
  #5   Spotlight this post!  
Unread 21-01-2010, 16:18
Eric24's Avatar
Eric24 Eric24 is offline
Registered User
FRC #1138 (Eagle Engineering)
Team Role: Programmer
 
Join Date: Mar 2008
Rookie Year: 2007
Location: Northridge, CA
Posts: 30
Eric24 is an unknown quantity at this point
Send a message via AIM to Eric24
Re: DS / WindRiver problem

Have you entered in your team number? That assigns the classmate a static IP that will work with the robot.
__________________

  #6   Spotlight this post!  
Unread 21-01-2010, 16:25
goodsky's Avatar
goodsky goodsky is offline
Programming Mentor
AKA: Skyler
FRC #1902 (Exploding Bacon)
Team Role: College Student
 
Join Date: Sep 2007
Rookie Year: 2005
Location: Orlando
Posts: 55
goodsky has a spectacular aura aboutgoodsky has a spectacular aura aboutgoodsky has a spectacular aura about
Re: DS / WindRiver problem

If I had this problem on our robot the first things that would come to mind would be to:

Make sure the watchdog is fed. There's an indicator on the bottom left that will tell you if the watchdog has died.

Make sure the jaguars are plugged into the correct ports for the simple robot demo and that your joysticks work (I would write a simple autonomous that simply drives forwards to see if that works to make sure the jaguars are functioning)

If your problem is still there after that then keep us updated!

edit: To answer your original question about if you need to change any settings on the driver station, are you using the classmate driver's station? If so, as long as you have a green light next to robot communication and one next to robot code then you should have a connection. Also make sure you have updated it!
__________________
OINK OINK BOOM!!!

Last edited by goodsky : 21-01-2010 at 16:28.
  #7   Spotlight this post!  
Unread 21-01-2010, 16:27
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: DS / WindRiver problem

Quote:
Originally Posted by dnrobotics11 View Post
...I am unable to get the jaguars to react to the joysticks.
Please give more detail. What are you expecting to happen? What happens instead? Is the Dashboard display showing you anything on the PWM channels you expect to be controlling? Describe what the green Robot Status Light on the Digital Sidecar is doing. Tell us about the LEDs on the Jaguars.

What connections are there to the Jaguars, and where does the other end of those connections go?
  #8   Spotlight this post!  
Unread 21-01-2010, 16:29
MamaSpoldi's Avatar
MamaSpoldi MamaSpoldi is offline
Programming Mentor
AKA: Laura Spoldi
FRC #0230 (Gaelhawks)
Team Role: Engineer
 
Join Date: Jan 2009
Rookie Year: 2007
Location: Shelton, CT
Posts: 307
MamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant future
Re: DS / WindRiver problem

As I recall there is a display in the lower right corner of one of the tabs which shows the joysticks you have attached to your driver station. (Sorry not in front of the DS right now so I can't tell you which screen exactly). If you do not see them listed there, then it is possible that your USB hub has an issue. I know that they are new in this year's KOP but ours has died already. We swapped it out for one that I had and it works fine.

Also, goodsky mentions coding up a quick autonomous mode... I believe the default code includes an autonomous function which just drives forward, at least the C++ version does. Are you using LabView, C++, or Java?

Last edited by MamaSpoldi : 21-01-2010 at 16:35. Reason: added info
  #9   Spotlight this post!  
Unread 21-01-2010, 19:19
dnrobotics11 dnrobotics11 is offline
Registered User
FRC #2589
 
Join Date: Mar 2008
Location: Massachusetts
Posts: 55
dnrobotics11 is an unknown quantity at this point
Re: DS / WindRiver problem

Okay thanks everyone...I am using C++ so the default code has the autonomous program already coded...the joysticks are definitely working with the Classmate since the asterisks appear next to each joystick on the driver station when you push the buttons on it....there doesn't appear to be any errors with communications...I did all of the necessary updates for the DS...I will try your suggestions and respond soon...thanks guys
  #10   Spotlight this post!  
Unread 22-01-2010, 11:02
dnrobotics11 dnrobotics11 is offline
Registered User
FRC #2589
 
Join Date: Mar 2008
Location: Massachusetts
Posts: 55
dnrobotics11 is an unknown quantity at this point
Re: DS / WindRiver problem

ok i fixed the problem...it was on autonomous mode not telo. (my error)...thanks everyone
Closed Thread


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
windriver c++? yara92 C/C++ 4 14-01-2010 16:39
Windriver Scarra3 C/C++ 1 31-12-2009 03:10
problem while programming 2 bottuns in windriver mahmosh C/C++ 3 12-02-2009 12:25
Problem Downloading Program from WindRiver to Driver Station The_Laughing_ManMII C/C++ 10 09-01-2009 20:03
Problem debugging code with WindRiver LinuxMercedes Programming 3 07-01-2009 11:10


All times are GMT -5. The time now is 02:19.

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