Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get current servo position? #60

Open
timbuktu031 opened this issue Mar 26, 2016 · 3 comments
Open

How to get current servo position? #60

timbuktu031 opened this issue Mar 26, 2016 · 3 comments

Comments

@timbuktu031
Copy link

hi
Can I get current servo position?
I need current position to reverse direction.
advise me.

@richardghirst
Copy link
Owner

No, you need to make your code remember what position you have moved it
to. In the general case someone can force a servo position and there is no
interface to read the actual position from the servo.
On 26 Mar 2016 8:15 am, "timbuktu031" [email protected] wrote:

Can I get current servo position?
I need current position to reverse direction.
advise me.


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#60

@timbuktu031
Copy link
Author

thanks.

2016-03-27 6:05 GMT+09:00 richardghirst [email protected]:

No, you need to make your code remember what position you have moved it
to. In the general case someone can force a servo position and there is no
interface to read the actual position from the servo.
On 26 Mar 2016 8:15 am, "timbuktu031" [email protected] wrote:

Can I get current servo position?
I need current position to reverse direction.
advise me.


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#60


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#60 (comment)

@calleblyh
Copy link

I have a similar need to show actual servo position. My idea would be to show the value of "servo1=servo1+2" after each keystroke next to the left, right, up, down which is shown on screen. My servos (pan and tilt) mid position is 150 and limited between 70 and 230. With which syntax can I get the value servo1 shown on screen ? Greatful for any advice how to acheive this !
calleblyh helsinki

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants