Commit d67ecc8e authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #4339 from DonLakeFlyer/PX4CommandRetry

Turn off command retry logic for PX4 Stack
parents 23eb60d3 57eb94e0
......@@ -1875,6 +1875,14 @@ void Vehicle::_sendMavCommandAgain(void)
}
if (_mavCommandRetryCount > 1) {
if (queuedCommand.command == MAV_CMD_START_RX_PAIR) {
// Implementation of this command in all firmwares is incorrect. It does not send Ack so we can't retry.
return;
}
if (px4Firmware()) {
// PX4 stack is inconsistent with repect to sending back an Ack from a COMMAND_LONG, hence we can't support retry logic for it.
return;
}
qDebug() << "Vehicle::_sendMavCommandAgain retrying command:_mavCommandRetryCount" << queuedCommand.command << _mavCommandRetryCount;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment