Go to Post Can you believe we have 8 FRC teams in Arkansas this year??? Not quite Michigan, but... - Meredith Novak [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
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 04-01-2016, 11:34 PM
avestasticc's Avatar
avestasticc avestasticc is offline
Registered User
AKA: Avery
FRC #0379 (The RoboCats)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2015
Location: ohio
Posts: 7
avestasticc is an unknown quantity at this point
Vision tracking issues

We have tried vision tracking with an axis camera as well as USB. We switched to a USB camera, a Microsoft life cam. We program with labview. We have had troubles connecting to the field at the competitions we have been to. It would work everywhere else but the competition field. We have found that the problem is that the vision tracking won't work unless its running from robot main. We are getting feed to the dash without lag tethered and untethered. We had talked to everyone we could at this regional, yet no one knew what was happening. National jnstruments was contacted as well but they said everything should be working. We figured it might not be the code since the code works very well from robot main. Everything is set to get the IP from the field. We tested with static, but it also did not work. At this point we don't know what the problem could be, and any help would be greatly appreciated.
Reply With Quote
  #2   Spotlight this post!  
Unread 04-01-2016, 11:46 PM
Landonh12's Avatar
Landonh12 Landonh12 is offline
270 points
AKA: Landon Haugh
FRC #0364 (Team Fusion)
Team Role: College Student
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Gulfport, MS
Posts: 211
Landonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud of
Re: Vision tracking issues

Well, first of all, could you post your code?

What are you using to process your images?

If you are using your driver station laptop to process images and send back information, are you using NetworkTables?

Whatever indicators and controls you put onto the front panel of your .vi's will not work when you build and deploy your code.
__________________
Team Fusion 364 - Driver/Programmer 2012-2015; Controls Mentor 2016-Present
Reply With Quote
  #3   Spotlight this post!  
Unread 04-02-2016, 01:14 AM
Hadi379's Avatar
Hadi379 Hadi379 is offline
Registered User
FRC #0379
 
Join Date: Jan 2007
Location: Girard
Posts: 157
Hadi379 is a splendid one to beholdHadi379 is a splendid one to beholdHadi379 is a splendid one to beholdHadi379 is a splendid one to beholdHadi379 is a splendid one to beholdHadi379 is a splendid one to beholdHadi379 is a splendid one to behold
Re: Vision tracking issues

Quote:
Originally Posted by Landonh12 View Post
Well, first of all, could you post your code?

What are you using to process your images?

If you are using your driver station laptop to process images and send back information, are you using NetworkTables?

Whatever indicators and controls you put onto the front panel of your .vi's will not work when you build and deploy your code.
Is that true about the indicators and controls not working from the front panel? It actually makes some sense. Tracking only works when tethered or wireless from robot main. But once on the actual field, it tracks, but just spins in circles.

If the front panel indicators and controls don't work after building and deploying the code, what values would the code be getting?

We have a usb camera (was an axis originally via Ethernet to bridge) directly plugged into the roborio. We are using labview and processing the images onto the roborio.

All of our values were on the front panel with the assumption that the code would use those values, but now I'm thinking that they need to be constants in the actual code.

So if I got this right, the front panel is just for testing your values and once found, they need to be inserted into the code?

Thanks,

Ash Hadi
379

Last edited by Hadi379 : 04-02-2016 at 01:16 AM.
Reply With Quote
  #4   Spotlight this post!  
Unread 04-02-2016, 01:19 PM
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: Vision tracking issues

Quote:
Originally Posted by Hadi379 View Post
All of our values were on the front panel with the assumption that the code would use those values, but now I'm thinking that they need to be constants in the actual code.
A front panel control has a "default value". That is what the control is set to when the program begins. If you are setting parameters for your code using front panel controls, you need to change the default before you build the project.

Do that by right-clicking on the control, choosing "data operations" from the popup menu, then choosing "make current value default" from the submenu.

After that, the control will essentially be compiled into your code as a constant.
Reply With Quote
  #5   Spotlight this post!  
Unread 04-03-2016, 11:58 AM
Hadi379's Avatar
Hadi379 Hadi379 is offline
Registered User
FRC #0379
 
Join Date: Jan 2007
Location: Girard
Posts: 157
Hadi379 is a splendid one to beholdHadi379 is a splendid one to beholdHadi379 is a splendid one to beholdHadi379 is a splendid one to beholdHadi379 is a splendid one to beholdHadi379 is a splendid one to beholdHadi379 is a splendid one to behold
Re: Vision tracking issues

Alan, we have been setting those values as defaults, and it wasn't working. As soon as we made those values constants directly in the code, IT WORKED!

Thanks for all the help, it was one of our goals this year to get vision tracking working, I'm very proud of all my programmers for their persistence.

Also, thanks to all the teams and CSA's at Midwest that helped us whenever possible to get our tracking functioning.
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 11:36 AM.

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