Today I decided to fix the issue of opposite servo pairs actuating in opposite directions which would result in a uncontrolled spin and subsequent destruction of airframe. It only took a few modifications totaling in 10 additional lines of code. This site was extremely helpful in explaining the servo drive code for opposite servo pairs.
Null1.write(valNull);
Obfuscated = valNull;
Null2.write(180-valNull);
Obfuscated = valNull;
What this does is take the opposite servo and drive it 180 degrees in the opposite direction of the reference servo.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.