ardupilot icon indicating copy to clipboard operation
ardupilot copied to clipboard

functional expansion: automatic shutter in auto mode

Open kozinalexey opened this issue 13 years ago • 8 comments

using the command do_digicam_control between each pair of waypoints uncomfortable for aerial Photography (changes numbering of waypoints - each command shown as new number)

I propose to make the expansion for camera shutter in auto mode as example: camera mode 1 take a picture every x meters camera mode 2 take a picture every waypoint center reached camera mode may be changed from unused mission command do_camera_configure

best for take picture fly mode is alt_hold. in this copter holds level so if camera configured for automaticaly shots - may be also specifed fly stop interval (3 argument of do_camera_configure)

achievement point of shoot - change mode to alt_hold - pause for 2 seconds - do shot - a pause for 2 seconds - the continuation of the mission

example: do_camera_configure 0 - disable auto shutter do_camera_configure 1, 0 (unused), 2 - take picture each waypoint with 2sec stops do_camera_configure 2, 20, 4 - take picture each 20meters with 4 sec stops

kozinalexey avatar May 21 '13 10:05 kozinalexey

This is similar to this other issue: https://github.com/diydrones/ardupilot/issues/172 in which the requestor wants the ch7/ch8 switch to activate the shutter over and over again.

rmackay9 avatar May 22 '13 06:05 rmackay9

And here is another somewhat related issue re triggering the camera: https://github.com/diydrones/ardupilot/issues/173

rmackay9 avatar May 22 '13 06:05 rmackay9

The "auto shutter function" over wp is a very old request, i hope in a future better development.

Marco

robustini avatar May 26 '13 09:05 robustini

yes, the option is in the standard parameters section called "trigger when 3m from waypoint". I think its the 3rd or 4th down from the top of the menu. Lets get it functional!

webdr avatar Jun 01 '13 13:06 webdr

new enhancement from Anderw Tridgell AP_Camera: added CAM_TRIGG_DIST parameter detail https://github.com/diydrones/ardupilot/commit/169b5a30a5bfbe0c0427bf8033fadaf10c6788a5 automatic shutter for each CAM_TRIGG_DIST meters

kozinalexey avatar Jul 03 '13 06:07 kozinalexey

Which release will this be incorporated into? Will this parameter be available in the .log? I hope to be able to match each photo trigger up with the GPS position, the IMU data for attitude, and the new GPS time parameter. Will these all be able to be logged? Thank you.

iskess avatar Jul 12 '13 00:07 iskess

For ArduCopter it should be 3.1

rmackay9 avatar Jul 12 '13 01:07 rmackay9

i tried to rewrite ap_camera code for configure and using addition delay before shot look it please:

https://github.com/kozinalexey/ardupilot/blob/master/libraries/AP_Camera/AP_Camera.cpp

arducopter using example:

in void update_roll_pitch_mode ... case ROLL_PITCH_AUTO:


#if CAMERA == ENABLED if (camera.do_not_shake() == true && control_mode == AUTO ) //exclude rtl landing takeoff failsafe {
nav_roll = 0; // navigation pause before take picture nav_pitch = 0; } else { nav_roll = wp_nav.get_desired_roll(); nav_pitch = wp_nav.get_desired_pitch(); }

#elif
nav_roll = wp_nav.get_desired_roll(); nav_pitch = wp_nav.get_desired_pitch(); #endif

kozinalexey avatar Jul 12 '13 09:07 kozinalexey