Ardupilot timer-based action

I would like to add some simple functionality to my autopilot, chiefly a signal sent every 10 seconds or so to fire a small camera. After looking a bit through the older posts, I am still a bit confused on how one would go about doing this, any suggestions on where to start looking? That looked like how to make a timer, but I'm a bit confused on the theory. Do i need to declare and initilize a new servo output, then call something like "pulse_servo_throttle(long angle)"?As far as hardware going, it's just an on/off type toggle switch, i'm not trying to actuate a servo to press the shutter button.

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • 3D Robotics
    If you just want to send a signal, why not just set one of the spare digital pins high?

    [setup]
    pinMode(pin,OUTPUT);

    [code]

    digitalWrite(pin,HIGH);
This reply was deleted.

Activity