Go to Post What, there is life outside of CD? - JB987 [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 07-03-2015, 14:26
epylko epylko is offline
Mentor!
AKA: Eric Pylko
FRC #3181 (Pittsford Panthers)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 1970
Location: Pittsford, NY
Posts: 45
epylko is an unknown quantity at this point
Re: C++ USB Camera Errors

We are using C++ and the USB camera as well. There are a couple of things we have done to get video in the C++ dashboard.

1. Make sure you have the patched widget located here: http://www.chiefdelphi.com/forums/sh...d.php?t=134404

2. When you start the driver station, start the default dashboard and then make sure you have USB Camera HW selected. You should see video in that dashboard. After you have video working there, switch to the C++ dashboard and add the patched widget to the dashboard.

I believe that will work - that's from memory. Let us know if that works.
Reply With Quote
  #2   Spotlight this post!  
Unread 09-03-2015, 09:52
MamaSpoldi's Avatar
MamaSpoldi MamaSpoldi is offline
Programming Mentor
AKA: Laura Spoldi
FRC #0230 (Gaelhawks)
Team Role: Engineer
 
Join Date: Jan 2009
Rookie Year: 2007
Location: Shelton, CT
Posts: 305
MamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant future
Re: C++ USB Camera Errors

Quote:
Originally Posted by epylko View Post
We are using C++ and the USB camera as well. There are a couple of things we have done to get video in the C++ dashboard.

1. Make sure you have the patched widget located here: http://www.chiefdelphi.com/forums/sh...d.php?t=134404

2. When you start the driver station, start the default dashboard and then make sure you have USB Camera HW selected. You should see video in that dashboard. After you have video working there, switch to the C++ dashboard and add the patched widget to the dashboard.

I believe that will work - that's from memory. Let us know if that works.
Really appreciate that info. We followed your procedure and it WORKED! Thanks.
__________________
Reply With Quote
  #3   Spotlight this post!  
Unread 09-03-2015, 20:12
MamaSpoldi's Avatar
MamaSpoldi MamaSpoldi is offline
Programming Mentor
AKA: Laura Spoldi
FRC #0230 (Gaelhawks)
Team Role: Engineer
 
Join Date: Jan 2009
Rookie Year: 2007
Location: Shelton, CT
Posts: 305
MamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant future
Re: C++ USB Camera Errors

So we had it working and now it does not work again after running without it on the robot for other testing (it was not securely mounted so we didn't want to damage it). Any advice? Do we have to go through the whole process (with the Labview dashboard and then changing over to the C++ SmartDashboard) each new time we bring up the robot with the camera? Do we need to reboot the driverstation after the camera is added?

Thanks
__________________
Reply With Quote
  #4   Spotlight this post!  
Unread 10-03-2015, 00:16
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,112
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: C++ USB Camera Errors

Quote:
Originally Posted by MamaSpoldi View Post
So we had it working and now it does not work again after running without it on the robot for other testing...
Did you plug it back into the same port it was in before? Check the roboRIO web page to see whether its name is now cam1 instead of cam0.
Reply With Quote
  #5   Spotlight this post!  
Unread 13-03-2015, 18:30
cbf cbf is offline
Registered User
FRC #2877
 
Join Date: Feb 2012
Location: Newton, MA
Posts: 74
cbf is just really nicecbf is just really nicecbf is just really nicecbf is just really nicecbf is just really nice
Re: C++ USB Camera Errors

Quote:
Originally Posted by MamaSpoldi View Post
So we had it working and now it does not work again after running without it on the robot for other testing (it was not securely mounted so we didn't want to damage it). Any advice? Do we have to go through the whole process (with the Labview dashboard and then changing over to the C++ SmartDashboard) each new time we bring up the robot with the camera? Do we need to reboot the driverstation after the camera is added?

Thanks
It's just flakey. Many of the underlying classes don't return errors (mostly declared void). If anything goes wrong, it just keeps spewing errors to the message window on the dashboard.

This is much harder than it should be.
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:45.

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