Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Autonomous Hot Detection question (http://www.chiefdelphi.com/forums/showthread.php?t=125006)

cammy:) 21-01-2014 01:30

Autonomous Hot Detection question
 
1 Attachment(s)
My team is pretty new to LabView and we're currently trying to write an autonomous program where we detect if the goal is hot using the axis camera and the LED ring, and shoot after the goal is detected hot. We integrated the example code into our normal code in Vision Processing, but our problem is that we can't seem to find the part of the example code that gives us a true or false value saying if the goal is hot or not that we can use in our autonomous.

Here is what I have written so far. Not sure if it would make any sense. We're just experimenting at the moment. :confused:

If anyone could provide us with any type of assistance that would me much appreciated. Thanks!

Greg McKaskle 21-01-2014 07:04

Re: Autonomous Hot Detection question
 
As it is currently written, your code is looping through all of the target info elements. If you find a validated element, you will fire the solenoid.

One thing to think about is that validated simply means that the code's analysis indicates this particle passed the proportion and rectangularity scores well enough to be either a hot or not hot target. It doesn't mean that the target is hot, and it doesn't mean the target is directly in front of the robot.

In fact, in the original example, there was another step of processing where the camera info and target info was processed to calculate distance to target and location within the camera scene. Especially at the starting location of the robots, it is entirely possible to see both hot and not hot target at the same time, but one is far to the left and the other is far to the right.

To your initial question about the hot/not hot indication. The brown cluster on the top, has an element called state. This classifies the element as Hot or Not Hot.

My suggestion would be to incorporate that last step that computes distances and locations. Then loop through the Target Info looking for hot target and comparing its location and distance to how your robot shoots. If you need to move the robot to get the target into a better location, do that. If the target is in a good location, fire the solenoids.

I hope that helps.
Greg McKaskle


All times are GMT -5. The time now is 09:46.

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