Go to Post "Wow, smells like... physics" - Anna B. [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 10-02-2010, 21:31
Rafael Vasquez Rafael Vasquez is offline
Registered User
FRC #1245
 
Join Date: Jan 2010
Location: Louisville
Posts: 10
Rafael Vasquez is an unknown quantity at this point
Bizarre issues with compressor code

For convenience on our bot, we are moving the digital side car module to slot 6 instead of slot 4 on the CRio. In begin.vi we have attempted to change the default of slot 4 to slot 6 by feeding that input a constant (slot 6).

However, the compressor still doesn't work. We have checked all inputs into 'Compressor Open' and they are the same as those that we have plugged in on the bot.

When the code is running and I probe the wire going from the constant that reads 'slot 6' to the input on the vi, the probe says 'Default'. I know that the default setting that it is trying to use is slot 4, but I cannot change this.

Does anyone have any idea as to what is going on, why it's happening, and how to fix it? I can provide any more information that anyone needs, but I can't get a screenshot of the code up.
  #2   Spotlight this post!  
Unread 10-02-2010, 21:55
Ziaholic's Avatar
Ziaholic Ziaholic is offline
Elec/SW Mentor
AKA: Marc
FRC #1164 (Project NEO)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2002
Location: Las Cruces, NM
Posts: 194
Ziaholic is a jewel in the roughZiaholic is a jewel in the roughZiaholic is a jewel in the roughZiaholic is a jewel in the rough
Re: Bizarre issues with compressor code

We're not allowed to move the modules around. You must use them in the slots and order specified. The only non-standard thing that I've heard of is the ability to add a second solenoid module out next to the one at the end of the cRIO.

Move the module back to where it belongs, change your Open's back to default slot settings and I bet your code will work like a charm.


[edit] ... ooops ... my bad ... I didn't realize that Slot6 is the "other" valid location for the DIO module ... sorry ... you're right, that should work.
__________________
----
There are 10 types of people. Those who understand binary, and those that do not.
Team #1164 - Project NEO Robotics

Last edited by Ziaholic : 11-02-2010 at 01:02. Reason: ... smacks forehead
  #3   Spotlight this post!  
Unread 10-02-2010, 22:26
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,559
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: Bizarre issues with compressor code

Quote:
Originally Posted by Rafael Vasquez View Post
For convenience on our bot, we are moving the digital side car module to slot 6 instead of slot 4 on the CRio. In begin.vi we have attempted to change the default of slot 4 to slot 6 by feeding that input a constant (slot 6).
Keep <R59> in mind before you go too far down this path.

Quote:
Originally Posted by Rafael Vasquez View Post
When the code is running and I probe the wire going from the constant that reads 'slot 6' to the input on the vi, the probe says 'Default'. I know that the default setting that it is trying to use is slot 4, but I cannot change this.
Are you calling this in begin? The probe only works when you set the probe before the data flows. In begin, it's probably run before you set the probe, so you don't see the real value. If you really think this is a problem, you could use the highlight execution to slow things down and also set retain wire values.

Quote:
Originally Posted by Ziaholic View Post
We're not allowed to move the modules around. You must use them in the slots and order specified. The only non-standard thing that I've heard of is the ability to add a second solenoid module out next to the one at the end of the cRIO.
The slots are defined by the FPGA image. Analog in 1 or 2, Digital in 4 or 6, solenoid in 7 or 8. A few features are restricted to a single slot (gyro and battery in slot 1, RSL in slot 4). Rules further restrict what you can use to compete, even if the code would work fine in the other slot. For example <R66> specifies an analog module must be in slot 1 for monitoring the battery voltage. There shouldn't be any reason in the code why the compressor works in 4 and not in 6. If he moves the digital module back to slot 4 and the compressor starts working, that would indicate a bug in the libraries or FPGA (or that he missed a reference to slot 4).
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
Compressor Code causes No Robot Code Error sircedric4 C/C++ 25 03-02-2010 10:13
need help with compressor code T3H_K3YM45T3R General Forum 6 16-02-2009 13:50
Issues with our code Richard McClellan Programming 22 28-01-2008 22:07
Issues with encoder code jgannon Programming 7 26-03-2006 15:12
Help With Compressor Code fred Programming 6 21-01-2005 17:40


All times are GMT -5. The time now is 10:06.

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