Go to Post An inability to communicate your ideas effectively is a handicap you would be well served to strive to overcome. - Ether [more]
Home
Go Back   Chief Delphi > Technical > Control System
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 23-02-2009, 22:21
ExarKun666's Avatar
ExarKun666 ExarKun666 is offline
Ben Error/MC Ben/NC Ben
AKA: Ben Kellogg
FRC #2429 (LCEC)
Team Role: Programmer
 
Join Date: Dec 2007
Rookie Year: 2008
Location: La Cañada, CA
Posts: 208
ExarKun666 is an unknown quantity at this point
Send a message via AIM to ExarKun666 Send a message via MSN to ExarKun666 Send a message via Yahoo to ExarKun666
Camera Setup

Okay so our team wanted to keep off the camera setup and all until we got everything in our original design working perfectly, so basically we just started with the camera configuration, I typed it all out in a text file before we left for the day so that I could get help so here is all the info:

Quote:
Using cross-over ethernet cable
Firmware Version 4.40
MAC address: 00:40:8C:8E1:15

Username: root
Password: admin

We are using the "Use the following IP address" option [not "obtain IP address via DHCP"]
IP address: 192.168.0.90
Subnet mask: 255.255.255.0
Default router: 10.24.29.4

Enable ARP/Ping setting of IP Address is checked

Video & Image are all defaults
So we plugged the crossover into our laptop and were successful in getting the image with the above settings. So then we hooked it to the robot and tried to get an image, and didn't know how. So:

1) Can you even receive an image from the camera when it's hooked to the cRIO?
2) If yes, how?
3) If no, how can you get feedback from the camera that it sees anything at all?

TY to any who reply.
__________________
Ben Kellogg




Team Sites: [LCEC Site] [FRC/FLL Site] [LCEC Blog]

Last edited by ExarKun666 : 23-02-2009 at 22:23.
Reply With Quote
  #2   Spotlight this post!  
Unread 23-02-2009, 22:44
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,830
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: Camera Setup

If you're using one of the LabVIEW frameworks, then the camera code is built in and you can see the camera output by running the default LabVIEW Dashboard project.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #3   Spotlight this post!  
Unread 23-02-2009, 23:01
ExarKun666's Avatar
ExarKun666 ExarKun666 is offline
Ben Error/MC Ben/NC Ben
AKA: Ben Kellogg
FRC #2429 (LCEC)
Team Role: Programmer
 
Join Date: Dec 2007
Rookie Year: 2008
Location: La Cañada, CA
Posts: 208
ExarKun666 is an unknown quantity at this point
Send a message via AIM to ExarKun666 Send a message via MSN to ExarKun666 Send a message via Yahoo to ExarKun666
Re: Camera Setup

We are using Windriver [but we have LabView installed]

Is there a way that we can get the image on the screen through Windriver?
__________________
Ben Kellogg




Team Sites: [LCEC Site] [FRC/FLL Site] [LCEC Blog]
Reply With Quote
  #4   Spotlight this post!  
Unread 23-02-2009, 23:55
ExarKun666's Avatar
ExarKun666 ExarKun666 is offline
Ben Error/MC Ben/NC Ben
AKA: Ben Kellogg
FRC #2429 (LCEC)
Team Role: Programmer
 
Join Date: Dec 2007
Rookie Year: 2008
Location: La Cañada, CA
Posts: 208
ExarKun666 is an unknown quantity at this point
Send a message via AIM to ExarKun666 Send a message via MSN to ExarKun666 Send a message via Yahoo to ExarKun666
Re: Camera Setup

I have another question

1) Is there the way to see what the camera sees through WindRiver?
2)if I switched the cRIO and did labVIEW just to look for the camera and go back to WindRiver cRIO, 1st can you even do this? 2nd if you did do this would it dmg the cRIO, or screw up any IP addressing??
__________________
Ben Kellogg




Team Sites: [LCEC Site] [FRC/FLL Site] [LCEC Blog]
Reply With Quote
  #5   Spotlight this post!  
Unread 24-02-2009, 00:09
nathanww nathanww is offline
Hacker
FRC #1678 (Citrus Circuits)
Team Role: Programmer
 
Join Date: Dec 2008
Rookie Year: 2007
Location: Davis, CA
Posts: 224
nathanww is just really nicenathanww is just really nicenathanww is just really nicenathanww is just really nice
Re: Camera Setup

First of all, the camera when plugged into the cRio it's on a different network from all of the other systems. Therefore, you can't acsess it directly. Since you're using windriver, you'll need to manually start a video server--check the C++ reference for the "PCvideoserver" object. Remember to take video server code out before you compete however--it will just bog down the CPU and bridge.

As for switching development environments on the cRio--just make sure you put in the team number right and that the current configuration matches what you're actually using, and it should work fine.
__________________
Get yer robot source code here!
Reply With Quote
  #6   Spotlight this post!  
Unread 24-02-2009, 10:30
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,830
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: Camera Setup

Probably the easiest way just to test the camera is to reformat the cRIO using the FRC cRIO Imaging Tool. That puts the default program back on the cRIO and it streams the camera back to your PC.
You can leave the cRIO formatted for Wind River, so your regular programming won't get messed up.

Then use "FRC Dashboard Project" from the LabVIEW startup window and run it by right clicking on Dashboard Main.vi and clicking Run.

If the camera is setup correctly you'll get the video.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #7   Spotlight this post!  
Unread 24-02-2009, 20:48
ExarKun666's Avatar
ExarKun666 ExarKun666 is offline
Ben Error/MC Ben/NC Ben
AKA: Ben Kellogg
FRC #2429 (LCEC)
Team Role: Programmer
 
Join Date: Dec 2007
Rookie Year: 2008
Location: La Cañada, CA
Posts: 208
ExarKun666 is an unknown quantity at this point
Send a message via AIM to ExarKun666 Send a message via MSN to ExarKun666 Send a message via Yahoo to ExarKun666
Re: Camera Setup

Okay wanted to get back to you. So I used the method of doing the cRIO tool, and checked the bubble LabView. I was able to successfully get the image from the camera once I opened up the FRC Dashboard thing. Then once I had confirmation that it was working correctly I went to the cRIO re-image tool yet again, and then checked the bubble WindRiver, once that was done I went into WindRiver, and did FIRST->Undeploy (like the reimage tool said) restarted the robot, then went to FIRST->Download and restarted the robot again and by battery it said No Code? What do I do to fix this I checked to see if it was using the right file under Window->Preferences and went to the Kernal task even, I even pressed Run, but nothing worked
__________________
Ben Kellogg




Team Sites: [LCEC Site] [FRC/FLL Site] [LCEC Blog]
Reply With Quote
  #8   Spotlight this post!  
Unread 25-02-2009, 09:30
ExarKun666's Avatar
ExarKun666 ExarKun666 is offline
Ben Error/MC Ben/NC Ben
AKA: Ben Kellogg
FRC #2429 (LCEC)
Team Role: Programmer
 
Join Date: Dec 2007
Rookie Year: 2008
Location: La Cañada, CA
Posts: 208
ExarKun666 is an unknown quantity at this point
Send a message via AIM to ExarKun666 Send a message via MSN to ExarKun666 Send a message via Yahoo to ExarKun666
Re: Camera Setup

can any one help with the above problem?
__________________
Ben Kellogg




Team Sites: [LCEC Site] [FRC/FLL Site] [LCEC Blog]
Reply With Quote
  #9   Spotlight this post!  
Unread 25-02-2009, 16:48
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,830
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: Camera Setup

Nothing off the top of my head, unless it's something simple like your team number got entered incorrectly when you reimaged the cRIO. But that's easy to test just by running the pinger, and you'd get an error message from Wind River anyway.

Downloading should work all by itself to transfer the file specified by Window -> Preferences without regard to the Imaging Tool or even Undeploy.

No error messages, it appears to download, but nothing runs after you restart the robot...

I assume you are up-to-date with the latest:
-Wind River Update 3 1/27/2009
-the cRIO has the v11 image on it now,
-and the Driver Station has firmware version 2009-02-10a3

Any useful status displayed on the Driver Station?
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 25-02-2009 at 16:52.
Reply With Quote
  #10   Spotlight this post!  
Unread 25-02-2009, 18:36
ExarKun666's Avatar
ExarKun666 ExarKun666 is offline
Ben Error/MC Ben/NC Ben
AKA: Ben Kellogg
FRC #2429 (LCEC)
Team Role: Programmer
 
Join Date: Dec 2007
Rookie Year: 2008
Location: La Cañada, CA
Posts: 208
ExarKun666 is an unknown quantity at this point
Send a message via AIM to ExarKun666 Send a message via MSN to ExarKun666 Send a message via Yahoo to ExarKun666
Re: Camera Setup

Quote:
Originally Posted by Mark McLeod View Post
Nothing off the top of my head, unless it's something simple like your team number got entered incorrectly when you reimaged the cRIO. But that's easy to test just by running the pinger, and you'd get an error message from Wind River anyway.

Downloading should work all by itself to transfer the file specified by Window -> Preferences without regard to the Imaging Tool or even Undeploy.

No error messages, it appears to download, but nothing runs after you restart the robot...

I assume you are up-to-date with the latest:
-Wind River Update 3 1/27/2009
-the cRIO has the v11 image on it now,
-and the Driver Station has firmware version 2009-02-10a3

Any useful status displayed on the Driver Station?
Okay so I undeployed it restarted, tried to debug and it says
Quote:
symbols not resolved
Then our DS display is the following if I do FIRST->Download, and restart the bot.
Quote:
Team: 2429
Mode: Teleoperated
System: Enabled
Battery: No Code
DS Rev: 2008-10-29a
yes I updated the cRIO with th version from 1/27, but if there was another one after that then I don't know about it. Also I checked the Window->Preferences. The only thing is that when I re-imaged it to get the img from the camera I checked the bubble LabVIEW, and then once I got it, I re-imaged the cRIO with Wind River and after I did that it no longer works, what should I do I am thinking about resetting the cRIO and then re-image it again, what is your suggestion?
__________________
Ben Kellogg




Team Sites: [LCEC Site] [FRC/FLL Site] [LCEC Blog]
Reply With Quote
  #11   Spotlight this post!  
Unread 25-02-2009, 19:18
ExarKun666's Avatar
ExarKun666 ExarKun666 is offline
Ben Error/MC Ben/NC Ben
AKA: Ben Kellogg
FRC #2429 (LCEC)
Team Role: Programmer
 
Join Date: Dec 2007
Rookie Year: 2008
Location: La Cañada, CA
Posts: 208
ExarKun666 is an unknown quantity at this point
Send a message via AIM to ExarKun666 Send a message via MSN to ExarKun666 Send a message via Yahoo to ExarKun666
Re: Camera Setup

So that didn't work. [resetting the IP address and then re-image cRIO] I have gone into Kernal Task and tried Debug as well as Run. I have no idea what is wrong and no matter what I always get No Code by the battery.
__________________
Ben Kellogg




Team Sites: [LCEC Site] [FRC/FLL Site] [LCEC Blog]

Last edited by ExarKun666 : 25-02-2009 at 19:24.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
camera setup procedure windell747 Programming 2 31-01-2009 22:36
Can't figure out the Axis camera setup... 2829ron Technical Discussion 6 20-01-2009 13:12
Setup Axis Camera - ERROR Bruno Inácio Technical Discussion 2 16-01-2009 12:37
Camera to motor setup Windward Programming 24 18-02-2006 20:29
Is the suggested Vision Camera setup ILLEGAL?! Mr. Lim Rules/Strategy 37 20-01-2005 21:46


All times are GMT -5. The time now is 05:56.

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