![]() |
Camera servo
im trying to move the camera using the 2nd joytick. we want to make button 8 make it go left and button 9 go right. then for up and down we want the thing that is between them to make it go up and down. anyone know how to do this?
|
Re: Camera servo
I think there was a thread that went into details on this recently. Basically you want to set the servo to a value each time through the loop. In front of this, you take the values sent last time and optionally increment, decrement, or leave alone. The value also needs to be remembered again until the next teleop message. The value can be fed back using a feedback node, it can use a shift register, a local variable, or even a global variable.
Greg McKaskle |
Re: Camera servo
Quote:
|
Re: Camera servo
The "thing" between buttons 8 & 9 is called the Throttle ... a.k.a Axis-3.
It goes from -1 to 1 ... but IMO, it goes the wrong way. You can wire the Axis3 (throttle) axis directly into the Tilt servo's SET POSITION. You might want to throw a "negate" in between if it acts backwards. |
Re: Camera servo
Quote:
btw(by the way), i created a post JUST like this, but I have code that does work(with the lightbulb on). I am still trying to figure out why the camera servo itself isnt working when we deploy the code. |
Re: Camera servo
Thanks for all the quick replies! sorry i cant take screen shots of the programming i have already done. what i basically set up was button 8 going into a case structure. (in true) i called up the Get angle then added 10 to it the put that value into Set Angle. it showed a red dot at Set angle. we deployed this code and nothing happened. is there a way to fix the red dot or should we use another Vi such as Set Position and Get position?:confused:
Also i did get the Throttle to work. all we added was a negate because it was backwards. :) Again thanks for all the help. This is the second year I have been on the team and i am already the head programmer on my team. |
Re: Camera servo
Quote:
|
Re: Camera servo
Quote:
|
Re: Camera servo
Quote:
|
Re: Camera servo
Quote:
to take into account the -1 to 1, the value given by the axis was divided by 4, and then added .5, so the total value would go from .25 to .75(since we dont need the camera to go up and down all the way) |
Re: Camera servo
Quote:
|
Re: Camera servo
Quote:
|
| All times are GMT -5. The time now is 11:52. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi