Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Happy to share vision code (http://www.chiefdelphi.com/forums/showthread.php?t=127337)

RamZ 02-03-2014 16:26

Re: Happy to share vision code
 
I'd be interested, if you could either PM me it, or email me it (ram.zallan@ht-la.org), I would be really grateful!

Alpharex 02-03-2014 18:38

Re: Happy to share vision code
 
Hey everyone. Sorry for not getting back to ya'll sooner. i have been really busy this week. I have sent the code to everyone who gave me their email address. I will try to pm everyone else but it would be great if ya'll could pm me your email addresses so i can get the code out to you asap.

FRCTeam3293 02-03-2014 20:02

Re: Happy to share vision code
 
Nice Job Alpharex! (you are Verkingharder!)

cbudrecki 02-03-2014 22:14

Re: Happy to share vision code
 
Wouldn't it be easier to just post it as a White Paper? If not, PM it to me!:D

Greg McKaskle 04-03-2014 11:12

Re: Happy to share vision code
 
I looked through the vision code, and it looks like it was following the tutorial steps pretty closely. A couple of feedback points, though.

It actually looks like the source folder for the robot contains a copy of the 2013 rectangle code, but then links to the 2014 example in the LV folder. This will work fine until you move your robot code.

The vision processing code is present on both robot and dashboard. From the logic, it seems that the Boolean to enable it on the robot is not set and that the robot is using data from the dashboard.

Your code in auto immediately reads the hot variable and reads it just once. The field targets may take some time to transition and stabilize. You may want to add a delay in a sequence frame in front of the read.

The rest of the code, the swerve and fire seems like it may be appropriate for your robot, but it is hard to tell.

Thanks for sharing.

Greg McKaskle

Alpharex 04-03-2014 21:23

Re: Happy to share vision code
 
Thanks for the feedback. I haven't finished the auton shoot. it is just an example to get people going.


All times are GMT -5. The time now is 22:03.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi