Hi new to this forum, ive written an arduino sketch to make an interface between my UAV's flight controller and the USB power lead so it can automatically trigger camera functions as required. Only problem now is that the camera lens will be protruding from the bottom of the UAV's fuselage. This will total the camera on landing and on any failed take off.
Ideally the camera should function as follows.
start script running and load in plane, cam goes into sleep mode with lens retracted.
cam stays in sleep until Auto waypoint mode is selected on the autopilot. this will be a usb trigger.
when in auto mode the lens should extend, and will shoot as commanded by the AP. and sleep in between.
when any other flight mode the cam should retract the lens and sleep.
upon landing the cam can be switched back on.
So the question is which function should be used to retract? perhaps:
press "display"
sleep 100
or;
click "display"
sleep 100
then i could just call shoot to wake it and extend the lens?