mavlink: don't send command ACK for internal commands over Iridium

This commit is contained in:
Igor Mišić
2023-02-15 09:51:40 +01:00
committed by Beat Küng
parent 29af189cd0
commit 5be0adc779
+9 -1
View File
@@ -2557,7 +2557,15 @@ void Mavlink::handleAndGetCurrentCommandAck(bool &start_ack, bool &stop_ack)
msg.target_system = command_ack.target_system;
msg.target_component = command_ack.target_component;
mavlink_msg_command_ack_send_struct(get_channel(), &msg);
if (_mode == MAVLINK_MODE_IRIDIUM) {
if (command_ack.from_external) {
// for MAVLINK_MODE_IRIDIUM send only if external
mavlink_msg_command_ack_send_struct(get_channel(), &msg);
}
} else {
mavlink_msg_command_ack_send_struct(get_channel(), &msg);
}
if (command_ack.command == vehicle_command_s::VEHICLE_CMD_LOGGING_START) {
start_ack = true;