mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
Remove exception for command acknowledge in mavlink transmitting
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user