Go to Post And when I heard the word "Mentor Round" - you had me SOLD. - Chris is me [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 Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 08-02-2017, 09:50
flemdogmillion's Avatar
flemdogmillion flemdogmillion is offline
Programmer, Builder, Driver...
FRC #3007
 
Join Date: Nov 2016
Rookie Year: 2015
Location: Minnesota
Posts: 149
flemdogmillion will become famous soon enoughflemdogmillion will become famous soon enough
Finally releasing my peg vision code

It's not perfect, it needs tuning per robot/ring light, and the scoring method needs a lot of improvement, but it works. And if that's what you're looking for, this is for you.

This covers all the edits to Vision Processing.vi from the example boiler-targeting code that you need to do to match my code. These are not code snippets, so you cannot simply drag and drop this into your program.

If you want the challenge, make the scoring program even better.
Attached Files
File Type: pdf Vision processing main print.pdf (353.0 KB, 90 views)
File Type: pdf Vision processing distance print.pdf (314.1 KB, 61 views)
File Type: pdf Vision processing cullgroup print.pdf (181.2 KB, 42 views)
File Type: pdf Vision processing scoring print.pdf (165.7 KB, 50 views)
__________________
Team 4506: 2015-2016
Team 3007: 2017

Jack of all trades except C++ & Java
Reply With Quote
  #2   Spotlight this post!  
Unread 08-02-2017, 14:08
Taggerun's Avatar
Taggerun Taggerun is offline
The Lone Programmer
FRC #3036 (DROBA Warriors)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2016
Location: Deer River
Posts: 52
Taggerun is an unknown quantity at this point
Re: Finally releasing my peg vision code

Quote:
Originally Posted by flemdogmillion View Post
It's not perfect, it needs tuning per robot/ring light, and the scoring method needs a lot of improvement, but it works. And if that's what you're looking for, this is for you.

This covers all the edits to Vision Processing.vi from the example boiler-targeting code that you need to do to match my code. These are not code snippets, so you cannot simply drag and drop this into your program.

If you want the challenge, make the scoring program even better.
Now that it can target the peg, how do it get it to follow the peg during autonomous.
__________________
My favorite robot?
The Aluminium Annihilator
"Oh yeah, it's British!!!!"

"It's taking longer than expected, which was to be expected."

"You know, it's amazing how many things you can take apart with just one ordinary screwdriver!" - Calvin, from Calvin and Hobbes
Reply With Quote
  #3   Spotlight this post!  
Unread 08-02-2017, 14:13
flemdogmillion's Avatar
flemdogmillion flemdogmillion is offline
Programmer, Builder, Driver...
FRC #3007
 
Join Date: Nov 2016
Rookie Year: 2015
Location: Minnesota
Posts: 149
flemdogmillion will become famous soon enoughflemdogmillion will become famous soon enough
Re: Finally releasing my peg vision code

Quote:
Originally Posted by Taggerun View Post
Now that it can target the peg, how do it get it to follow the peg during autonomous.
I'm not taking away the entire challenge. You need it to turn the robot based on how far off you are. All the vision results are contained in Robot Global Data.vi, which is a collection of variables, and Normalized->Center->X is where you get how far off you are, ranging from -1 to 1.
__________________
Team 4506: 2015-2016
Team 3007: 2017

Jack of all trades except C++ & Java
Reply With Quote
  #4   Spotlight this post!  
Unread Yesterday, 11:57
cs60312 cs60312 is offline
Registered User
FRC #1777
 
Join Date: Dec 2016
Location: Kansas
Posts: 2
cs60312 is an unknown quantity at this point
Re: Finally releasing my peg vision code

I saw you disconnect all the wires for the line border in the comparison.vi, then how are you suppose to change the value for line border?
Reply With Quote
  #5   Spotlight this post!  
Unread Yesterday, 13:41
flemdogmillion's Avatar
flemdogmillion flemdogmillion is offline
Programmer, Builder, Driver...
FRC #3007
 
Join Date: Nov 2016
Rookie Year: 2015
Location: Minnesota
Posts: 149
flemdogmillion will become famous soon enoughflemdogmillion will become famous soon enough
Re: Finally releasing my peg vision code

Quote:
Originally Posted by cs60312 View Post
I saw you disconnect all the wires for the line border in the comparison.vi, then how are you suppose to change the value for line border?
There is a constant in the upper-right of the Scoring VI block diagram, it is currently set as 10. You can split that into two constants if you wish, or wire it back to an unbundling of the line border cluster, but that constant currently controls the line border of both sides.
__________________
Team 4506: 2015-2016
Team 3007: 2017

Jack of all trades except C++ & Java
Reply With Quote
  #6   Spotlight this post!  
Unread Yesterday, 14:25
cs60312 cs60312 is offline
Registered User
FRC #1777
 
Join Date: Dec 2016
Location: Kansas
Posts: 2
cs60312 is an unknown quantity at this point
Re: Finally releasing my peg vision code

Quote:
Originally Posted by flemdogmillion View Post
There is a constant in the upper-right of the Scoring VI block diagram, it is currently set as 10. You can split that into two constants if you wish, or wire it back to an unbundling of the line border cluster, but that constant currently controls the line border of both sides.
Thank you so much for helping!
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 00:29.

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