Go to Post I hate you.... in a graciously professional sort of way. - Uberbots [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
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 11-02-2012, 17:49
agentace agentace is offline
Registered User
FRC #2522
 
Join Date: Feb 2010
Location: Lynnwood High School
Posts: 8
agentace is an unknown quantity at this point
Windriver deploying code issue

This is my first year using Windriver on our robot. We are having issues deploying code. We can deploy the code and reboot without any problems, and the driver station sees code, but it will not do anything. I have tried both the simple and iterative robot examples and the Jaguars do not change color when we move the joysticks. I also tried the Driver Station LCD text example, but it does not work either. The cRIO is imaged to the v43 image. I appreciate any help.
Reply With Quote
  #2   Spotlight this post!  
Unread 11-02-2012, 18:19
Supernovapsy Supernovapsy is offline
Registered User
FRC #1334
 
Join Date: Feb 2012
Location: Canada
Posts: 18
Supernovapsy is an unknown quantity at this point
Re: Windriver deploying code issue

Yeah, this is strange. You are giving the jaguars commands without them responding. The only thing I can think of are the port numbers. Are you sure the ports for the jaguars correspond with the ones given in the code?
Reply With Quote
  #3   Spotlight this post!  
Unread 11-02-2012, 18:27
agentace agentace is offline
Registered User
FRC #2522
 
Join Date: Feb 2010
Location: Lynnwood High School
Posts: 8
agentace is an unknown quantity at this point
Re: Windriver deploying code issue

The PWM ports are correct in the code, but I am running the default example code. We are also using the older cRIO (8 slots). Is it possible that it is looking at the wrong card and not reading the digital sidecar? If it is, where do I change the card slot? Sorry, I am new to C++...
Reply With Quote
  #4   Spotlight this post!  
Unread 11-02-2012, 18:34
Supernovapsy Supernovapsy is offline
Registered User
FRC #1334
 
Join Date: Feb 2012
Location: Canada
Posts: 18
Supernovapsy is an unknown quantity at this point
Re: Windriver deploying code issue

I don't think there is any problems with the default example code; however, the fact that you're using the 8-slot might be the problem. I can think of two fixes:

1. Quick fix
When a jaguar is declared, there is the option of putting in the module number for it. The module number should go from 1-8 on the cRIO. When you're declaring the jaguar objects, try doing this: Jaguar blah(module number, port number).

2. The other way is to change the cRIO to the 4-slot one, which is the new one. The reason I think you might have to do this is because the image might only be designed for the 4-slot (I'm not sure about this).
Reply With Quote
  #5   Spotlight this post!  
Unread 11-02-2012, 19:13
Zero_Viscosity Zero_Viscosity is offline
Registered User
FRC #3344
 
Join Date: Feb 2012
Location: Fayetteville Georgia
Posts: 5
Zero_Viscosity is an unknown quantity at this point
Re: Windriver deploying code issue

I was having a similar issue earlier. I ended up having to rearrange the cards in the cRIO. You can tell if they are in the wrong slot by going to the imaging tool, and looking a the cRIO diagram. If anything is red, change the slot.
Reply With Quote
  #6   Spotlight this post!  
Unread 12-02-2012, 11:19
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,112
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: Windriver deploying code issue

Quote:
Originally Posted by agentace View Post
The PWM ports are correct in the code, but I am running the default example code. We are also using the older cRIO (8 slots). Is it possible that it is looking at the wrong card and not reading the digital sidecar? If it is, where do I change the card slot? Sorry, I am new to C++...
Slot 1 must contain an NI 9201 analog module.
Slot 2 must contain an NI 9403 digital module.
Slot 3 may contain an NI 9472 solenoid module.
Slot 4 is empty.
Slot 5 may contain a second analog module.
Slot 6 may contain a second digital module.
Slot 7 may contain a second solenoid module.
Slot 8 is empty.

Also keep in mind that the first module of each kind (in slots 1-3) is always called "Module 1" in the code, and the second module of each kind is called "Module 2".
Reply With Quote
  #7   Spotlight this post!  
Unread 12-02-2012, 12:51
agentace agentace is offline
Registered User
FRC #2522
 
Join Date: Feb 2010
Location: Lynnwood High School
Posts: 8
agentace is an unknown quantity at this point
Re: Windriver deploying code issue

Quote:
Originally Posted by Alan Anderson View Post
Slot 1 must contain an NI 9201 analog module.
Slot 2 must contain an NI 9403 digital module.
Slot 3 may contain an NI 9472 solenoid module.
Slot 4 is empty.
Slot 5 may contain a second analog module.
Slot 6 may contain a second digital module.
Slot 7 may contain a second solenoid module.
Slot 8 is empty.

Also keep in mind that the first module of each kind (in slots 1-3) is always called "Module 1" in the code, and the second module of each kind is called "Module 2".
Thank you! That fixed everything. I was so used to the Digital Card being in slot 4, I guess it makes sense that they changed it.
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 02:34.

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