These are chat archives for PX4/Hardware
I'm sorry to do this, but would anyone mind doing an "Explain to to me like I'm 5" regarding internally triggering a servo? Thus far I've been able to use
#include <drivers/camera_trigger/interfaces/src/relay.h> CameraInterfaceRelay camera_relay; camera_relay.trigger(true)
to get an LED to light very briefly. I'm worried that the pulse won't move the servo enough to do what I need it to do, though I should mention it is only momentary. What I'm thinking I need is roughly a .5sec pulse to move the servo to the point I need it, then move it back. I'm also assuming I'll need a BEC in the circuit, which I do conveniently have on my GPIO rails.
/drivers/camera_trigger/interfaces/src/camera_interfaceor, as I'm reading how that code uses it, just hit the
up_pwm_servo_set()with the appropriate pins as the first argument and my pulse width as the second?
CameraInterfacePWMwhich I mentioned above,
up_pwm_servo_set()an appropriate spot to start?