|
Re: Have you gotten your robot to go towards the vision tetra?
Wow! Consider this to be good feedback!
I have a couple of questions though. First of all I am a newbie programmer, and there are a few things I dont understand. As described above I had our kitbot set up so it could drive to the target and stop. I like this program somewhat more than yours I think because the robot can make steering corrections on the move whereas with yours it would stop to make steering corrections.
Basically my question for you is what do I have to do to get this code to execute in autonomous mode? Do I simply go to the autonomous section of user_routines_fast.c and put my code there (obviously I would have to modify it so it doesnt use the joysticks)? Or do I have to put "camera_track_update( ); " in that section then my code? Or do I have to take all of the camera stuff out of user_routines.c and transfer it to the autonomous section?
I know that is a lot of questions, but basically it all comes down to how do I use the camera in autonomous mode?
Anyway thanks in advance,
Russell
Edit: Ok I have looked at your code above some more and I think I am beginning to get it, but if I put that in the autonomous section how will the robot get the color values, as they are in the user_routines.c section? Does that section also execute in autonomous or do I have to copy that part of the code over?
Last edited by russell : 27-01-2005 at 02:22.
|