Go to Post Sustaining an FRC team is really hard! - Jared Russell [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 21-01-2014, 01:30
cammy:)'s Avatar
cammy:) cammy:) is offline
Cammy
FRC #3008 (Kalani Falcons)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Hawaii
Posts: 11
cammy:) is an unknown quantity at this point
Autonomous Hot Detection question

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.

If anyone could provide us with any type of assistance that would me much appreciated. Thanks!
Attached Thumbnails
Click image for larger version

Name:	autonomouse.PNG
Views:	115
Size:	25.1 KB
ID:	15890  
__________________
☁ ☁
┏┷┷┓ ♪
▌▣﹏▣ ▌♫
Reply With Quote
  #2   Spotlight this post!  
Unread 21-01-2014, 07:04
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
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
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 20:56.

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