Skip to content

Commit

Permalink
address review to fix code comment
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielePettenuzzo committed Feb 22, 2024
1 parent 5020ae2 commit 70d1142
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/gimbal/gimbal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,8 @@ static int gimbal_thread_main(int argc, char *argv[])
thread_data.control_data.sysid_primary_control = 0;
thread_data.control_data.compid_primary_control = 0;
// If the output is set to AUX we still want the input to be able to control the gimbal
// via mavlink, so we set the device_compid to 1. Basically in this configuration both
// gimbal manager and gimbal device have the same component ID as the autopilot (=1).
// via mavlink, so we set the device_compid to 1. This follows the mavlink spec which states
// that the gimbal_device_id should be between 1 and 6.
thread_data.control_data.device_compid = params.mnt_mode_out == 0 ? 1 : 0;
}

Expand Down

0 comments on commit 70d1142

Please sign in to comment.