From fe365c7d97712fa943b618d5f6044d2a5c03ed04 Mon Sep 17 00:00:00 2001 From: DonLakeFlyer Date: Fri, 28 Feb 2020 13:24:06 -0800 Subject: [PATCH] Vehicle command send logging --- src/Vehicle/Vehicle.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Vehicle/Vehicle.cc b/src/Vehicle/Vehicle.cc index 6b8b6237f..b6e4301c1 100644 --- a/src/Vehicle/Vehicle.cc +++ b/src/Vehicle/Vehicle.cc @@ -3323,6 +3323,8 @@ void Vehicle::_sendMavCommandAgain() _mavCommandAckTimer.start(); + qCDebug(VehicleLog) << "_sendMavCommandAgain sending" << queuedCommand.command; + mavlink_message_t msg; if (queuedCommand.commandInt) { mavlink_command_int_t cmd; @@ -3428,6 +3430,8 @@ void Vehicle::_handleCommandAck(mavlink_message_t& message) mavlink_command_ack_t ack; mavlink_msg_command_ack_decode(&message, &ack); + qCDebug(VehicleLog) << QStringLiteral("_handleCommandAck command(%1) result(%2)").arg(ack.command).arg(ack.result); + if (ack.command == MAV_CMD_REQUEST_AUTOPILOT_CAPABILITIES && ack.result != MAV_RESULT_ACCEPTED) { qCDebug(VehicleLog) << QStringLiteral("Vehicle responded to MAV_CMD_REQUEST_AUTOPILOT_CAPABILITIES with error(%1). Setting no capabilities.").arg(ack.result); _handleUnsupportedRequestAutopilotCapabilities(); -- 2.22.0