Go to Post I tried to write a scouting app and wanted to throw my desk out a window... - tjf [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 11-02-2012, 16:45
blackwood blackwood is offline
Registered User
FRC #2359 (RoboLobos)
Team Role: Teacher
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Edmond, OK
Posts: 40
blackwood is a splendid one to beholdblackwood is a splendid one to beholdblackwood is a splendid one to beholdblackwood is a splendid one to beholdblackwood is a splendid one to beholdblackwood is a splendid one to beholdblackwood is a splendid one to behold
Using 2 digital side cars

Our team is having problems trying to use two digital sidecars.

We are using JAVA, and the code compiles but says there is no second digital module,(and we have two attached) and that the channels we are trying to use are already allocated.

Any suggestions?

Thanks.
  #2   Spotlight this post!  
Unread 11-02-2012, 16:48
MrBasse MrBasse is offline
Registered User
FRC #3572 (Wavelength)
Team Role: Coach
 
Join Date: Jul 2011
Rookie Year: 2010
Location: Norton Shores, MI
Posts: 687
MrBasse has a reputation beyond reputeMrBasse has a reputation beyond reputeMrBasse has a reputation beyond reputeMrBasse has a reputation beyond reputeMrBasse has a reputation beyond reputeMrBasse has a reputation beyond reputeMrBasse has a reputation beyond reputeMrBasse has a reputation beyond reputeMrBasse has a reputation beyond reputeMrBasse has a reputation beyond reputeMrBasse has a reputation beyond repute
Re: Using 2 digital side cars

are your modules in the proper slots on the crio? When you image the rio does the imaging tool recognize all of the slots being used properly?
__________________
Andrew Basse
Coach - FRC Team 3572 - Wavelength
  #3   Spotlight this post!  
Unread 11-02-2012, 17:09
blackwood blackwood is offline
Registered User
FRC #2359 (RoboLobos)
Team Role: Teacher
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Edmond, OK
Posts: 40
blackwood is a splendid one to beholdblackwood is a splendid one to beholdblackwood is a splendid one to beholdblackwood is a splendid one to beholdblackwood is a splendid one to beholdblackwood is a splendid one to beholdblackwood is a splendid one to behold
Re: Using 2 digital side cars

Yes they are in the proper slots, and yes the imaging to for the c-rio recognizes all slots as being used properly.
  #4   Spotlight this post!  
Unread 11-02-2012, 17:12
MrBasse MrBasse is offline
Registered User
FRC #3572 (Wavelength)
Team Role: Coach
 
Join Date: Jul 2011
Rookie Year: 2010
Location: Norton Shores, MI
Posts: 687
MrBasse has a reputation beyond reputeMrBasse has a reputation beyond reputeMrBasse has a reputation beyond reputeMrBasse has a reputation beyond reputeMrBasse has a reputation beyond reputeMrBasse has a reputation beyond reputeMrBasse has a reputation beyond reputeMrBasse has a reputation beyond reputeMrBasse has a reputation beyond reputeMrBasse has a reputation beyond reputeMrBasse has a reputation beyond repute
Re: Using 2 digital side cars

on the bright side that all but eliminates a mechanical connection issue, so that leaves it to the way you call the devices in your code. Unfortunately not being a java guy this is where I have to say good luck and hopefully someone with experience in the programming area can chime in... When I see these threads I know the first thing people want is to see the code where you activate and assign channels.
__________________
Andrew Basse
Coach - FRC Team 3572 - Wavelength
  #5   Spotlight this post!  
Unread 11-02-2012, 17:16
blackwood blackwood is offline
Registered User
FRC #2359 (RoboLobos)
Team Role: Teacher
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Edmond, OK
Posts: 40
blackwood is a splendid one to beholdblackwood is a splendid one to beholdblackwood is a splendid one to beholdblackwood is a splendid one to beholdblackwood is a splendid one to beholdblackwood is a splendid one to beholdblackwood is a splendid one to behold
Re: Using 2 digital side cars

Thanks for trying. Hopefully someone will have more advice soon!
  #6   Spotlight this post!  
Unread 11-02-2012, 19:11
CalTran's Avatar
CalTran CalTran is offline
MST Rolla Senior
FRC #2410 (BV CAPS Metal Mustang Robotics)
Team Role: College Student
 
Join Date: Apr 2010
Rookie Year: 2010
Location: Overland Park, Kansas
Posts: 2,419
CalTran has a reputation beyond reputeCalTran has a reputation beyond reputeCalTran has a reputation beyond reputeCalTran has a reputation beyond reputeCalTran has a reputation beyond reputeCalTran has a reputation beyond reputeCalTran has a reputation beyond reputeCalTran has a reputation beyond reputeCalTran has a reputation beyond reputeCalTran has a reputation beyond reputeCalTran has a reputation beyond repute
Re: Using 2 digital side cars

I know that this is going to sound odd, but have you checked the modules themselves? At the beginning of our season, we hit a snag and our programmers tore hairs out trying to fix code until it turned out to be a bad module.
__________________
Team 2410 thinks KISSing is amazing! Keep It Super Safe!
  • "You know you've been in robotics too long when you start talking to your tools." "Well, you've been in robotics CLEARLY too long when they start talking back"
  • Theory is when you know everything but nothing works. Practice is when everything works but you don't know why. On our team, theory and practice comes together - nothing works and nobody knows why.
MMR 2410 Student (2010 - 2013) | MMR 2410 Mentor (2013 - Present)
FTC Game Announcer / EmCee (2014 - Present) | FRC EmCee (2015 - Present) | FRC Referee (2016) | FTC Referee (2017)
Academic Student (Forever)
  #7   Spotlight this post!  
Unread 11-02-2012, 19:14
JByrd's Avatar
JByrd JByrd is offline
Registered User
AKA: "The Word"
FRC #0829 (Digital Goats)
Team Role: Programmer
 
Join Date: Sep 2009
Rookie Year: 2009
Location: Indianapolis, IN
Posts: 7
JByrd is an unknown quantity at this point
Re: Using 2 digital side cars

when you construct your inputs and outputs do you have the code written with the module number like this:

DigitalInput input = new DigitalInput(2,1)

(for a digital input in port 1 on the module on slot 2 of the cRIO)

or

DigitalInput input = new DigitalInput(4,1)

(for a digital input in port 1 on the module on slot 4 of the cRIO)
__________________
I'll tell you anything random that you don't want to hear
  #8   Spotlight this post!  
Unread 11-02-2012, 19:20
slijin's Avatar
slijin slijin is offline
Pockets
AKA: Samuel Lijin
FRC #0694 (StuyPulse)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York City
Posts: 537
slijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to behold
Re: Using 2 digital side cars

Quote:
Originally Posted by CalTran View Post
I know that this is going to sound odd, but have you checked the modules themselves? At the beginning of our season, we hit a snag and our programmers tore hairs out trying to fix code until it turned out to be a bad module.
I have to second this.

Try reversing your modules (move the one from slot 2 to 4 and viceversa) and see which ones work.
__________________

2010-12 CT Chairman's
2011 Galileo 5th seed
2010 NY Regional Winners
  #9   Spotlight this post!  
Unread 12-02-2012, 11:26
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: Using 2 digital side cars

Quote:
Originally Posted by JByrd View Post
when you construct your inputs and outputs do you have the code written with the module number like this:

DigitalInput input = new DigitalInput(2,1)

(for a digital input in port 1 on the module on slot 2 of the cRIO)

or

DigitalInput input = new DigitalInput(4,1)

(for a digital input in port 1 on the module on slot 4 of the cRIO)
If you do have the program written like this, fix it. You shouldn't be referencing slot numbers in the code. The first digital module (in slot 2) is module 1. The second digital module (in slot 4 of a 4-slot cRIO or slot 6 of an 8-slot cRIO) is module 2.
  #10   Spotlight this post!  
Unread 13-02-2012, 12:38
blackwood blackwood is offline
Registered User
FRC #2359 (RoboLobos)
Team Role: Teacher
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Edmond, OK
Posts: 40
blackwood is a splendid one to beholdblackwood is a splendid one to beholdblackwood is a splendid one to beholdblackwood is a splendid one to beholdblackwood is a splendid one to beholdblackwood is a splendid one to beholdblackwood is a splendid one to behold
Re: Using 2 digital side cars

Quote:
Originally Posted by Alan Anderson View Post
If you do have the program written like this, fix it. You shouldn't be referencing slot numbers in the code. The first digital module (in slot 2) is module 1. The second digital module (in slot 4 of a 4-slot cRIO or slot 6 of an 8-slot cRIO) is module 2.
Thanks. I will pass this on to our programmers. Just curious, where did you find this information? If there is some documentation that has this info, I would appreciate it.
  #11   Spotlight this post!  
Unread 13-02-2012, 12:50
SousVide SousVide is offline
Registered User
no team
 
Join Date: Jan 2011
Location: CA
Posts: 91
SousVide is a splendid one to beholdSousVide is a splendid one to beholdSousVide is a splendid one to beholdSousVide is a splendid one to beholdSousVide is a splendid one to beholdSousVide is a splendid one to beholdSousVide is a splendid one to behold
Re: Using 2 digital side cars

The WPI Getting Started with Java Guide:
http://firstforge.wpi.edu/sf/docman/..._documentation

Page 15: Constructors with Slots and Channels



Quote:
Originally Posted by blackwood View Post
Thanks. I will pass this on to our programmers. Just curious, where did you find this information? If there is some documentation that has this info, I would appreciate it.
  #12   Spotlight this post!  
Unread 13-02-2012, 19:49
blackwood blackwood is offline
Registered User
FRC #2359 (RoboLobos)
Team Role: Teacher
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Edmond, OK
Posts: 40
blackwood is a splendid one to beholdblackwood is a splendid one to beholdblackwood is a splendid one to beholdblackwood is a splendid one to beholdblackwood is a splendid one to beholdblackwood is a splendid one to beholdblackwood is a splendid one to behold
Re: Using 2 digital side cars

Quote:
Originally Posted by SousVide View Post
The WPI Getting Started with Java Guide:
http://firstforge.wpi.edu/sf/docman/..._documentation

Page 15: Constructors with Slots and Channels
Thank you everyone. We got it to work!
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


All times are GMT -5. The time now is 01:44.

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