diff options
author | Julian Oes <julian@oes.ch> | 2014-04-07 21:44:01 +0200 |
---|---|---|
committer | Julian Oes <julian@oes.ch> | 2014-04-18 22:05:46 +0200 |
commit | d662fa4c14676aac26603e55c71c04a2dd29503a (patch) | |
tree | a9064a9cbac34e4be6cdae3fcffb9d18cd33820e /src | |
parent | 01d9d482c3237250420e182e0aedd409c365f848 (diff) | |
download | px4-firmware-d662fa4c14676aac26603e55c71c04a2dd29503a.tar.gz px4-firmware-d662fa4c14676aac26603e55c71c04a2dd29503a.tar.bz2 px4-firmware-d662fa4c14676aac26603e55c71c04a2dd29503a.zip |
Send camera command to all, use own sysid
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/mavlink/mavlink_messages.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/modules/mavlink/mavlink_messages.cpp b/src/modules/mavlink/mavlink_messages.cpp index 6b543d44f..45b86a497 100644 --- a/src/modules/mavlink/mavlink_messages.cpp +++ b/src/modules/mavlink/mavlink_messages.cpp @@ -1264,13 +1264,11 @@ protected: || status->arming_state == ARMING_STATE_ARMED_ERROR) { /* send camera capture on */ - /* XXX TODO: get param for system ID */ - mavlink_msg_command_long_send(_channel, 42, 250, MAV_CMD_DO_CONTROL_VIDEO, 0, 0, 0, 0, 1, 0, 0, 0); + mavlink_msg_command_long_send(_channel, mavlink_system.sysid, 0, MAV_CMD_DO_CONTROL_VIDEO, 0, 0, 0, 0, 1, 0, 0, 0); } else { /* send camera capture off */ - /* XXX TODO: get param for system ID */ - mavlink_msg_command_long_send(_channel, 42, 250, MAV_CMD_DO_CONTROL_VIDEO, 0, 0, 0, 0, 0, 0, 0, 0); + mavlink_msg_command_long_send(_channel, mavlink_system.sysid, 0, MAV_CMD_DO_CONTROL_VIDEO, 0, 0, 0, 0, 0, 0, 0, 0); } } }; |