Quote:
Originally Posted by akash992391
I expect servo to move 0 to 180 and come back to I position
Basically I want that servo to push frisbee to the spinning tires... So yeah
|
That partly answers a second one of my three questions. I'd still like to know
when you want the servo to move from 0 to 180, and
when you want it to return to 0. But the most important thing you haven't said yet is what the servo
does do. When you describe what it does, try not to leave out any details. Some of them might be important clues to what's causing your problem.
Note that your code won't ever get the servo to 180, because it sets the servo to either 0 or 1
30 based on Joystick 3's trigger button. The servo will be at 130 while the trigger is not being pressed. It will move from 130 to 0 when the trigger is pressed, and remain at 0 as long as the trigger is held. It will move from 130 to 0 when the trigger is released.
Pushing a frisbee more than an inch or two is a heck of a job to ask a servo to perform. It's likely to just sit there and buzz trying to do something that takes more torque than it is able to apply.