|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Controlling motors using vision processing help
here is my post to the NI site
early in the season we were able to get the rectangular target processing example to see the target and give a distance from it, when we installed the leds. We are now are wanting the camera to track the target using the servos to move the camera. i can't see anywhere in this example where that is implemented. is this another example or it there a way to get track distance and camera tracking from this example?? but i'm now glad i checked CD. so is it true there is no target tracking built into the example? we were considering giving the driver's pots to track the target. but i do not see where the +-1 output is? can you direct me into the block diagram more closely? |
|
#2
|
||||
|
||||
|
Re: Controlling motors using vision processing help
i think i found the +-1. is it in computer distance.vi
target center (-1 to 1) gives an x and y? |
|
#3
|
|||||
|
|||||
|
Re: Controlling motors using vision processing help
The rectangular target processing produces a Target info array. Each element of that array is a bundle containing X,Y coordinates and computed distance of each recognized rectangle.
|
|
#4
|
||||
|
||||
|
Re: Controlling motors using vision processing help
got it, we have been using the distance, but not the x, y coordinates,
thank u |
|
#5
|
|||
|
|||
|
Re: Controlling motors using vision processing help
There is a camera servo example that does a search pattern, moves the camera to point at a colored object, and has a small state machine for overshoot and other situations. You may be able to adapt it or to get the general idea from it.
Greg McKaskle |
|
#6
|
|||
|
|||
|
Re: Controlling motors using vision processing help
Quote:
Thanks! |
|
#7
|
|||||
|
|||||
|
Re: Controlling motors using vision processing help
It's with all the other LabVIEW examples on your programming computer.
When you launch LabVIEW, the "Getting Started" window appears. It has a number of tabs down the left side. One of those tabs is "Support", and it leads to a set of links including "Find FRC Examples..." I think the specific example Greg is talking about is named "Servo Camera Example.lvproj". It resides in the FRC Robotics > Vision folder. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|