|
|
|
@ -1106,10 +1106,11 @@ void Copter::do_roi(const AP_Mission::Mission_Command& cmd)
@@ -1106,10 +1106,11 @@ void Copter::do_roi(const AP_Mission::Mission_Command& cmd)
|
|
|
|
|
set_auto_yaw_roi(cmd.content.location); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#if CAMERA == ENABLED |
|
|
|
|
|
|
|
|
|
// do_digicam_configure Send Digicam Configure message with the camera library
|
|
|
|
|
void Copter::do_digicam_configure(const AP_Mission::Mission_Command& cmd) |
|
|
|
|
{ |
|
|
|
|
#if CAMERA == ENABLED |
|
|
|
|
camera.configure(cmd.content.digicam_configure.shooting_mode, |
|
|
|
|
cmd.content.digicam_configure.shutter_speed, |
|
|
|
|
cmd.content.digicam_configure.aperture, |
|
|
|
@ -1117,13 +1118,11 @@ void Copter::do_digicam_configure(const AP_Mission::Mission_Command& cmd)
@@ -1117,13 +1118,11 @@ void Copter::do_digicam_configure(const AP_Mission::Mission_Command& cmd)
|
|
|
|
|
cmd.content.digicam_configure.exposure_type, |
|
|
|
|
cmd.content.digicam_configure.cmd_id, |
|
|
|
|
cmd.content.digicam_configure.engine_cutoff_time); |
|
|
|
|
#endif |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// do_digicam_control Send Digicam Control message with the camera library
|
|
|
|
|
void Copter::do_digicam_control(const AP_Mission::Mission_Command& cmd) |
|
|
|
|
{ |
|
|
|
|
#if CAMERA == ENABLED |
|
|
|
|
if (camera.control(cmd.content.digicam_control.session, |
|
|
|
|
cmd.content.digicam_control.zoom_pos, |
|
|
|
|
cmd.content.digicam_control.zoom_step, |
|
|
|
@ -1132,16 +1131,13 @@ void Copter::do_digicam_control(const AP_Mission::Mission_Command& cmd)
@@ -1132,16 +1131,13 @@ void Copter::do_digicam_control(const AP_Mission::Mission_Command& cmd)
|
|
|
|
|
cmd.content.digicam_control.cmd_id)) { |
|
|
|
|
log_picture(); |
|
|
|
|
} |
|
|
|
|
#endif |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// do_take_picture - take a picture with the camera library
|
|
|
|
|
void Copter::do_take_picture() |
|
|
|
|
{ |
|
|
|
|
#if CAMERA == ENABLED |
|
|
|
|
camera.trigger_pic(true); |
|
|
|
|
log_picture(); |
|
|
|
|
#endif |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// log_picture - log picture taken and send feedback to GCS
|
|
|
|
@ -1159,6 +1155,8 @@ void Copter::log_picture()
@@ -1159,6 +1155,8 @@ void Copter::log_picture()
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
// point the camera to a specified angle
|
|
|
|
|
void Copter::do_mount_control(const AP_Mission::Mission_Command& cmd) |
|
|
|
|
{ |
|
|
|
|