Go to Post The sign applause was definately one of the best moments I had ever witnessed at a FIRST event. Who knew silence could be so loud? - Koko Ed [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 22-02-2010, 18:23
helenajoy helenajoy is offline
Registered User
FRC #2437
 
Join Date: Nov 2008
Location: Hawaii
Posts: 31
helenajoy is an unknown quantity at this point
Smile Camera Image on Driver Station/Dashboard

So, our build team decided to mount the camera upside-down. And are leaving it up the programmers to fix this problem. Our driver station is (obviously) returning to us an upside-down camera image. Is there any way to flip/invert the camera image in our code?

Thanks!
Reply With Quote
  #2   Spotlight this post!  
Unread 22-02-2010, 19:32
EHaskins EHaskins is offline
Needs to change his user title.
AKA: Eric Haskins
no team (CARD #6 (SCOE))
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Elkhorn, WI USA
Posts: 998
EHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond repute
Send a message via MSN to EHaskins
Re: Camera Image on Driver Station/Dashboard

In Java, C++ should be very similar:

Code:
AxisCamera camera = AxisCamera.getInstance();
camera.writeRotation(AxisCamera.RotationT.k180); //or k0.
__________________
Eric Haskins KC9JVH
Reply With Quote
  #3   Spotlight this post!  
Unread 22-02-2010, 21:49
helenajoy helenajoy is offline
Registered User
FRC #2437
 
Join Date: Nov 2008
Location: Hawaii
Posts: 31
helenajoy is an unknown quantity at this point
Smile Re: Camera Image on Driver Station/Dashboard

Hm, would you by any chance know how to code that in LabView? That is what we are working in.
Reply With Quote
  #4   Spotlight this post!  
Unread 22-02-2010, 22:05
reversed_rocker's Avatar
reversed_rocker reversed_rocker is offline
Alumni
AKA: Ken Condon
FRC #0706 (Cyberhawks)
Team Role: College Student
 
Join Date: Nov 2008
Rookie Year: 2008
Location: Hartland
Posts: 69
reversed_rocker is on a distinguished road
Re: Camera Image on Driver Station/Dashboard

for some reason changing camera settings in the code never seems to work right. my suggestion is to connect the camera to a computer with a crossover cable, go into a web browser, type in its IP address (ours is 192.168.0.90, i believe yours is supposed to be the same) password should be root and then admin (if this is your programming laptop, make sure to change your ip address so that it starts with 192.168.0.x instead of 10.x.x.x) through the web browser you can access the video settings and flip the image 180 degrees
Reply With Quote
  #5   Spotlight this post!  
Unread 23-02-2010, 07:53
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Camera Image on Driver Station/Dashboard

If you open Begin.vi, it already sets about six camera parameters. I don't actually see a Set Property VI for setting the camera rotation, though. It would be pretty easy to build.

Do you want this for processing on the robot, or for display on the dashboard. I'd suggest leaving it alone on the robot and simply flipping the resulting X,Y. Then rotate it on the dashboard. This will consume less cRIO CPU.

Greg McKaskle
Reply With Quote
  #6   Spotlight this post!  
Unread 24-02-2010, 03:12
helenajoy helenajoy is offline
Registered User
FRC #2437
 
Join Date: Nov 2008
Location: Hawaii
Posts: 31
helenajoy is an unknown quantity at this point
Re: Camera Image on Driver Station/Dashboard

We woulkd like to have it for the dashboard.

Where can I chane the x and y, and how do I flip this image?
Reply With Quote
  #7   Spotlight this post!  
Unread 24-02-2010, 08:18
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Camera Image on Driver Station/Dashboard

To rotate or modify it for the dashboard, use the IMAQ functions in Vision>>Vision Utilities>>Image Manipulation, and either the IMAQ Symmetry to mirror and flip, or the IMAQ Rotate to spin.

Greg McKaskle
Reply With Quote
  #8   Spotlight this post!  
Unread 24-02-2010, 09:45
KyleWishnok's Avatar
KyleWishnok KyleWishnok is offline
Registered User
FRC #2544 (HCRC)
Team Role: Driver
 
Join Date: Feb 2010
Rookie Year: 2008
Location: Erie PA
Posts: 7
KyleWishnok will become famous soon enough
Re: Camera Image on Driver Station/Dashboard

if you loosen the screw on the post of the camera you can just put it right side up with the mount on the top opposed to reprograming it
Reply With Quote
  #9   Spotlight this post!  
Unread 15-04-2010, 08:05
helenajoy helenajoy is offline
Registered User
FRC #2437
 
Join Date: Nov 2008
Location: Hawaii
Posts: 31
helenajoy is an unknown quantity at this point
Re: Camera Image on Driver Station/Dashboard

I found those VIs. Where in my code would it be best to place it?
Reply With Quote
  #10   Spotlight this post!  
Unread 15-04-2010, 10:21
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: Camera Image on Driver Station/Dashboard

You want to place it in your Dashboard, after the "get image on PC" vi.
__________________
-- Marshal Horn
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
Dashboard-Driver Station Help Please sircedric4 C/C++ 18 21-01-2010 22:50
How to run dashboard project on driver station baronep Programming 1 18-01-2010 14:58
Driver Station Dashboard Problems CVassos Programming 9 16-01-2010 23:27
Driver Station to Dashboard Laptop connection slavik262 FRC Control System 4 12-01-2010 00:37


All times are GMT -5. The time now is 08:40.

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