|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Axis Camera Help!!!
i know it's kinda last minute and all, but we still want to attempt to use the axis camera for our robot, even though it runs fine without it. the only problem is i'm just not sure where to begin. i'm using labview and i can see that in the basic robot main there is a while loop already set up for the camera, but i'm just not sure what to do with it. could someone please help me?
|
|
#2
|
|||
|
|||
|
Re: Axis Camera Help!!!
wat does it need to do?
|
|
#3
|
||||
|
||||
|
Re: Axis Camera Help!!!
it needs to follow the green and pink fabric that we were given as a sample in the kit of parts, and then if i am able to get that working i would like to use it in autonomous mode of the robot, so that while autonomous mode is running the robot will track/follow the pink and green fabric and use this information/signal from the camera to initiate the motors to drive in that direction
|
|
#4
|
|||
|
|||
|
Re: Axis Camera Help!!!
that is the same thing i am trying to get accomplished. i'm type lost on the subject as well. i can get servos to follow the fabric just not motors
|
|
#5
|
||||
|
||||
|
Re: Axis Camera Help!!!
yeah, i'm kinda new to the whole programming thing, so i'm just not even sure where to begin.
|
|
#6
|
|||
|
|||
|
Re: Axis Camera Help!!!
If you camera will be mounted on the servo gimbal, then you probably want to start with the sample code for two color tracking. Try the sample exactly as it is at first, just setup your IP address, hook up the PWMs, and see if it works.
Once that works, look at the diagram of the Robot Main, see where it Gets the image and does nothing with it? Then in the example where it gets the image and calls the Find Two Color and then the State Based Servo Tracking? Go ahead and copy the stuff from the example into the vision loop. If you use the servos, copy that loop too and place it nearby somewhere. If you are using servos, the servo X value tells you when the robot may need to turn to face the target. If you are not using the servos and want to control a motor, the camera is telling you how far to turn. You need to figure out how to do that with a motor, and probably a pot. Greg McKskle |
|
#7
|
||||
|
||||
|
Re: Axis Camera Help!!!
where did you find this example that you're talking about and i'm not using servos, just motors controlled by jaguars.
|
|
#8
|
|||
|
|||
|
Re: Axis Camera Help!!!
I think this example is in the examples/FRC/vision folder if you've installed update three. And it is also discussed at length including a demo program that incorporated it on the earliest post here
http://forums.usfirst.org/showthread.php?t=11298&page=2 Greg McKaskle |
|
#9
|
||||
|
||||
|
Re: Axis Camera Help!!!
i'm sorry, but when i read that thread, i couldn't make sense of any of it. i don't know what to do with the labview programming part of the camera as well as the physical aspect of where things should be hooked up (besides the eithernet cable to the second port on the cRIO) so, lots of detailed help would be appretiated.
|
|
#10
|
||||
|
||||
|
Re: Axis Camera Help!!!
where did you get the third update from?
|
|
#11
|
|||
|
|||
|
Re: Axis Camera Help!!!
Fist download the two color code being provided to you.
Second open the lvproj and follow the directions on the panel to test it out. Third reread the thread and search for similar threads where others describe and even give out code that integrates this example with the template code. Fourth start coding. If you have more specific questions or problems, ask away. Greg McKaskle |
|
#12
|
||||
|
||||
|
Re: Axis Camera Help!!!
sorry about all this, i'm still learning, but how do you get the two colored code? where is it?
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help: "Setup Axis Camera" | sloteera | Programming | 9 | 16-01-2010 00:59 |
| Axis Camera Help | dnrobotics11 | C/C++ | 1 | 26-01-2009 18:10 |
| Connecting Axis Camera | Sauce | Programming | 8 | 18-01-2009 20:08 |
| AXIS Camera | nickmagus | Programming | 1 | 03-01-2009 20:06 |
| Axis Camera Testing help | koo_04 | Programming | 7 | 20-12-2008 13:55 |