ardupilot icon indicating copy to clipboard operation
ardupilot copied to clipboard

add camera trigger by GPS distance

Open tridge opened this issue 13 years ago • 6 comments

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

tridge avatar Jun 18 '13 00:06 tridge

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 .....)

tridge avatar Jun 18 '13 01:06 tridge

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.

rmackay9 avatar Jun 18 '13 01:06 rmackay9

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.

jpkh avatar Jun 18 '13 05:06 jpkh

good suggestion from Randy that we use AP_Relay and AP_Camera instead of pin/servo

tridge avatar Jun 18 '13 05:06 tridge

Can we get this feature added to Arducopter too please?

R-Lefebvre avatar Jun 28 '13 13:06 R-Lefebvre

Done. The parameter is here. http://copter.ardupilot.com/wiki/arducopter-parameters/#Camera_trigger_distance_CAM_TRIGG_DIST

CraigElder avatar Jun 28 '13 15:06 CraigElder