Remove exception for command acknowledge in mavlink transmitting

This commit is contained in:
acfloria
2018-03-08 10:39:45 +01:00
committed by Beat Küng
parent f5a66782e5
commit 6c3857a147

View File

@@ -2236,11 +2236,11 @@ Mavlink::task_main(int argc, char *argv[])
msg.target_component = command_ack.target_component;
current_command_ack = command_ack.command;
// always transmit the acknowledge
bool _transmitting_enabled_temp = _transmitting_enabled;
_transmitting_enabled = true;
// TODO: always transmit the acknowledge once it is only sent over the instance the command is received
//bool _transmitting_enabled_temp = _transmitting_enabled;
//_transmitting_enabled = true;
mavlink_msg_command_ack_send_struct(get_channel(), &msg);
_transmitting_enabled = _transmitting_enabled_temp;
//_transmitting_enabled = _transmitting_enabled_temp;
}
}