Go to Post Do not treat Vex and FLL as inferior because they may not get as much exposure as FRC on these boards. Just remember, FLL has seven times more teams than FRC from twenty additional countries. - artdutra04 [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 21-02-2011, 19:23
bruceba bruceba is offline
Registered User
FRC #3681
 
Join Date: Feb 2011
Location: United States
Posts: 3
bruceba is an unknown quantity at this point
yet another axis camera question

I don't understand why the current camera instructions describe setting its address to 10.36.81.11 (for instance) but the AxisCamera::GetInstance() method returns an AxisCameraParam (base class) instance initialized to 192.168.0.90. AFAICT there is no way to override that IP address. What am I missing?
Reply With Quote
  #2   Spotlight this post!  
Unread 21-02-2011, 23:59
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: yet another axis camera question

You're missing the second half of the first sentence that describes setting the camera's IP address that way:

"The camera can also be connected directly to the radio and bypass the cRIO if you choose not to use image processing."
Reply With Quote
  #3   Spotlight this post!  
Unread 22-02-2011, 12:08
bruceba bruceba is offline
Registered User
FRC #3681
 
Join Date: Feb 2011
Location: United States
Posts: 3
bruceba is an unknown quantity at this point
Re: yet another axis camera question

OK, for the sake of argument, let's say I want to do image processing. The question still stands -- how do I use the AxisCamera class to access the camera whose IP address is 10.x.x.11?
Reply With Quote
  #4   Spotlight this post!  
Unread 22-02-2011, 12:12
Straberrie's Avatar
Straberrie Straberrie is offline
The Plague
AKA: Rebecca
FRC #0375 (Robotic Plague)
Team Role: Programmer
 
Join Date: Feb 2008
Rookie Year: 2007
Location: New York
Posts: 59
Straberrie will become famous soon enough
Re: yet another axis camera question

You have two options with the camera.

1) If you want to use it for vision only, you can connect it directly to your radio, in which case you have to play around with the camera's IP address.

2) If you want to use image processing, you have to connect the Axis Camera to the cRIO, keeping Axis Camera's IP setting in factory settings. You should connect the camera to port 2 of the cRIO and not touch the camera's IP settings. Do the following:

a) Turn the Camera off, press the reset button (control button) and keeping holding it. Turn the camera on, wait until the ring around the camera turns to reddish/orange color. Let go of the control button and ta daaaa... you are back to factory settings. ( Do this if you changed camera's IP configuration)

b) Now, follow the instruction in this PDF

http://usfirst.org/uploadedFiles/Rob...our_Camera.pdf

Use "FRC" as username
Use "FRC" as a password

That is the configuration that worked for me.

Note, This is still the IP address: 192.168.0.90

then, use this to check if you have vision.

AxisCamera &camera = AxisCamera::GetInstance();
__________________
Team 375: The Robotic Plague
Current Robot: I-Chihuahua
Last Event: Big Apple Breakaway

Last edited by Straberrie : 22-02-2011 at 12:22.
Reply With Quote
  #5   Spotlight this post!  
Unread 22-02-2011, 13:03
bruceba bruceba is offline
Registered User
FRC #3681
 
Join Date: Feb 2011
Location: United States
Posts: 3
bruceba is an unknown quantity at this point
Re: yet another axis camera question

Thanks very much for the comprehensive explanation. The 2nd ethernet port on the cRIO is configured by default as a 192.168.x.x network so this makes perfect sense.
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 03:05.

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