add camera trigger by GPS distance
Add ability for a mission item to start/stop camera trigger based on GPS distance travelled. Output either via a PWM channel or via a digital output pin. The location/attitude etc needs to be logged for each photo taken, both to flashlog and to tlog
possible message structure:
<pre>
<entry value="186" name="MAV_CMD_DO_REPEAT_PIN_DISTANCE">
<description>Cycle a digital pin high at regular distances of GPS travel.</description>
<param index="1">Pin number</param>
<param index="2">Cycle count. A cycle count -1 means to keep repeating. A cycle count of zero means to stop</param>
<param index="3">Cycle time (milli-seconds) to hold pin high for each cycle</param>
<param index="4">GPS Distance in meters between cycles</param>
<param index="5">Starting event number (used for logging)</param>
<param index="6">Empty</param>
<param index="7">Empty</param>
</entry>
</pre>
(damn markdown can't handle XML .....)
Just like to bring up that the AP_Camera library support using AP_Relay (a digital pin) or a servo to trigger the camera so the actually trigger mechanism shouldn't need to be changed as part of this request....just the method by which the trigger if activated.
Yes this is definitely needed. Currently we need to have external device to read PWM and convert that to TLL HIGH/LOW values. We need MAV command to make output PIN X to go HIGH or LOW. So new method for that is needed. There might be a needs too for to have pin LOW or HIGH for X seconds but most important is to be able to control it's state.
There are several cameras out that needs either LOW of HIGH output to start/stop recording video.
good suggestion from Randy that we use AP_Relay and AP_Camera instead of pin/servo
Can we get this feature added to Arducopter too please?
Done. The parameter is here. http://copter.ardupilot.com/wiki/arducopter-parameters/#Camera_trigger_distance_CAM_TRIGG_DIST