![]() |
Re: Team 254 Presents: CheesyVision
Quote:
http://www.chiefdelphi.com/forums/sh...9&postcount=54 Thats the link to my post with the download, and the pynetworktables can be found here http://firstforge.wpi.edu/sf/frs/do/...ktables.2014_4 The variables can just be read using the SmartDashboard ReadBoolean Vi's. |
Re: Team 254 Presents: CheesyVision
We got it to work in LV by switching to a UDP socket instead of a TCP socket (on port 1130).
CheesyVision side, we removed the retry and connection code and use sendto instead of send to send a UDP socket. A quick google search (on my phone while at MSC) helped with this. On the LV side, we used a UDP Open and UDP Listen with a timeout of 0 in a While loop. When UDP Listen returns an error (timed out), we have some logic to use the last good byte recieved as the Cheesyvision byte, timestamp it, then calculate age (dt of timestamp), and report the byte and age to our code. I don't have the exact code, I'll see if I can get it. Total coding time was under 10mins in the pits. This was after an hour or so of fooling around with TCP. |
Re: Team 254 Presents: CheesyVision
Quote:
Excellent! I will try to replicate this approach this morning. Please post your code when you can! It will help tremendously if we can't get it dialed in. |
Re: Team 254 Presents: CheesyVision
1 Attachment(s)
OK, Here is a LabView TCP Receiver.
I can't believe how easy it was! All my struggles were because I had a minor misunderstanding of how my IDE (Notepad++) was interacting with the CheesyVision code and also the security settings in Win 8 were preventing me from testing this receiver. The CheesyVision code is solid. Now this vi works just as reliably with it. |
Re: Team 254 Presents: CheesyVision
Quote:
|
Re: Team 254 Presents: CheesyVision
Quote:
|
Re: Team 254 Presents: CheesyVision
Quote:
|
Re: Team 254 Presents: CheesyVision
Quote:
|
Re: Team 254 Presents: CheesyVision
Quote:
|
Re: Team 254 Presents: CheesyVision
Quote:
We used a USB webcam attached to a PCDuino. It wold track the balls based on color and shape. We also had a switch on the DS that allowed us to select to track Blue or Red. We only used the "x axis" center of the ball to assist the driver with aligning to the ball. We never used the distance to the ball. We feed the "x" value to LabView to be used to help the driver align. |
Re: Team 254 Presents: CheesyVision
Quote:
|
Re: Team 254 Presents: CheesyVision
Quote:
BTW... I like the .h in your name... I thought you were a c++ programmer. :) |
Re: Team 254 Presents: CheesyVision
Quote:
Quote:
|
Re: Team 254 Presents: CheesyVision
Has anyone had any luck using cheesy vision on the playing fields at champs? It works perfectly for us in the pit, but it is not able to connect to the robot on the Newton playing field or the Newton practice field. We submitted a question to the FTA regarding whether they have port 1180 blocked but haven't gotten back to us yet.
|
Re: Team 254 Presents: CheesyVision
Quote:
|
| All times are GMT -5. The time now is 05:08. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi