Skip to content

Added an option to set the initial ticks or not#3

Open
RobotZwrrl wants to merge 1 commit intoPaulStoffregen:masterfrom
RobotMissions:master
Open

Added an option to set the initial ticks or not#3
RobotZwrrl wants to merge 1 commit intoPaulStoffregen:masterfrom
RobotMissions:master

Conversation

@RobotZwrrl
Copy link
Copy Markdown

I found the servos jump to a position when calling attach. This is problematic for applications where servos are used in robots, with heavier and long lever arms on the servos. The solution is to include a boolean to determine if we want to set the initial ticks or not. True by default, as this was the original functionality.

Now, by calling attach(pin, false), the servo will not jump to an initial position. It can still be set to a position afterwards successfully.

Tested on Bowie robot, using a Teensy 3.2.

…vos to not jump on the initial attach method
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

Successfully merging this pull request may close these issues.

1 participant