mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-21 13:02:25 +08:00
Partial Revert "MAVLink: Add capture command to command queue"
This reverts commit dde5781142.
This commit is contained in:
committed by
Lorenz Meier
parent
d5cbbba341
commit
2939bd9c96
@@ -1377,6 +1377,24 @@ protected:
|
||||
cmd.param7 = NAN;
|
||||
|
||||
MavlinkCommandSender::instance().handle_vehicle_command(cmd, _mavlink->get_channel());
|
||||
|
||||
// TODO: move this camera_trigger and publish as a vehicle_command
|
||||
/* send MAV_CMD_DO_DIGICAM_CONTROL*/
|
||||
mavlink_command_long_t digicam_ctrl_cmd;
|
||||
|
||||
digicam_ctrl_cmd.target_system = 0; // 0 for broadcast
|
||||
digicam_ctrl_cmd.target_component = MAV_COMP_ID_CAMERA;
|
||||
digicam_ctrl_cmd.command = MAV_CMD_DO_DIGICAM_CONTROL;
|
||||
digicam_ctrl_cmd.confirmation = 0;
|
||||
digicam_ctrl_cmd.param1 = NAN;
|
||||
digicam_ctrl_cmd.param2 = NAN;
|
||||
digicam_ctrl_cmd.param3 = NAN;
|
||||
digicam_ctrl_cmd.param4 = NAN;
|
||||
digicam_ctrl_cmd.param5 = 1; // take 1 picture
|
||||
digicam_ctrl_cmd.param6 = NAN;
|
||||
digicam_ctrl_cmd.param7 = NAN;
|
||||
|
||||
mavlink_msg_command_long_send_struct(_mavlink->get_channel(), &digicam_ctrl_cmd);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user