G’Day DIYDrones community
I am relatively new here and trying to add an extra servo to my Arduplane. All of the 8CH are full as I have flaps and added camera tilt/pan, so I decided to use one of the expansion ports (A6) instead.
I added to ArduPilotMega.pde the following:
#include <Servo.h>
Servo myservo; // create servo object
In void setup() I added:
pinMode(A6, OUTPUT); //A6 to a digital output
myservo.attach(A6); // attaches the servo on A6 to the servo object
myservo.write(180); // start servo at 180Deg
The code loads and the servo goes to 180deg, however STABILIZE (or any other mode) stops working. Am I doing something really wrong here?
Thanks in advance
Adrian
Replies
Maybe start reading here?
http://arduino.cc/forum/index.php?topic=73318.0