From d88f9353e878c05786d69244f77321c8d6c16fc7 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Tue, 20 Jul 2021 08:46:53 +0200 Subject: [PATCH] vmount: improve debug message This should help to figure out when gimbal commands don't work. --- src/modules/vmount/input_mavlink.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/modules/vmount/input_mavlink.cpp b/src/modules/vmount/input_mavlink.cpp index 189acffaaa..b8e1dc20b0 100644 --- a/src/modules/vmount/input_mavlink.cpp +++ b/src/modules/vmount/input_mavlink.cpp @@ -807,7 +807,10 @@ int InputMavlinkGimbalV2::update_impl(unsigned int timeout_ms, ControlData **con _ack_vehicle_command(&vehicle_command, vehicle_command_s::VEHICLE_CMD_RESULT_ACCEPTED); } else { - PX4_ERR("GIMBAL_MANAGER_PITCHYAW denied, not in control"); + PX4_INFO("GIMBAL_MANAGER_PITCHYAW from %d/%d denied, in control: %d/%d", + vehicle_command.source_system, + vehicle_command.source_component, + _sys_id_primary_control, _comp_id_primary_control); _ack_vehicle_command(&vehicle_command, vehicle_command_s::VEHICLE_CMD_RESULT_DENIED); }