|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Still can't get the camera to track
I might be wrong, but I think Jill wants to turn the whole robot instead of a turret. If so, you could just take the servo positions it calculates, subtract the ange that the program thinks is center, and turn your robot in the direction of the sign. If it's negative, turn right. If it's positive, turn left. You could use a set speed to turn at, or you could scale the degrees to motor speeds. Have a deadband so that once the value gets close to zero, the robot will stop turning.
Just a couple of thoughts off the top of my head, trying to think of the easiest way to do it. |
|
#2
|
|||
|
|||
|
Re: Still can't get the camera to track
can you submit example code on how to do this for us visual learners?
|
|
#3
|
|||
|
|||
|
Re: Still can't get the camera to track
this is what i have, but i need to attach an encoder because, the code resets itself and it keeps tearing my cables apart. how do i attach an encoder to this?...
http://tinypic.com/view.php?pic=25uu1qs&s=5 |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| What if we want to use the camera to track orbit balls? | Bryan Herbst | General Forum | 10 | 12-01-2009 21:10 |
| can't get joystick right with the motor | coolguybigt | Motors | 1 | 16-02-2007 10:20 |
| AAH I'm spazzing out because I can't get our camera to do anything!!! | JBotAlan | Programming | 23 | 14-02-2007 04:20 |
| [RCU]: Can't get into the chats? | Julia Magoolia | General Forum | 0 | 12-06-2005 13:28 |