|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#5
|
||||
|
||||
|
Re: Moving Camera Servos With Joystick Button
What Greg suggests will work great, just be careful about how often you change the angle. If you change the servo setpoint whenever the button is held down, then the servo will almost instantly go to it's extreme angle. The reason being that the loop runs really fast, so you increment the setpoint very fast and it builds up to the max quickly.
I would check the time and only do the servo code when a certain amount of time has passed. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Servos not moving | Marlfox | Electrical | 2 | 09-02-2009 18:24 |
| joystick button | furiousgeorge | Programming | 5 | 07-02-2009 15:57 |
| Programming a joystick button... | programmr | Programming | 2 | 05-01-2009 16:13 |
| using servos with camera | team877 | Programming | 2 | 01-02-2007 21:26 |
| Moving robot while tracking with camera questions... | Steve Orr | Programming | 6 | 02-02-2006 22:24 |