-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Gimbal: ignore invalid gimbal_device_id Otherwise, we potentially work with garbage. * Gimbal: Reference gimbal with manager + device IDs This changes how the found gimbals are referenced. Instead of only using the gimbal device ID for the gimbal map, we now also use the gimbal manager compid. This assumes that it is valid to have more than one gimbal manager with non-MAVLink gimbals attached, which means the gimbal_device_id would clash in that case, e.g. both would be 1. Therefore, we use the gimbal manager compid as well as the associated gimbal_device_id as the map key. * Gimbal: fix yaw calculation We should use the new yaw value, not the previous one when calculating the missing frame. * Gimbal: send commands to gimbal component We shouldn't just send the commands to the vehicle because the gimbal manager might be implemented on any component, not just the autopilot. * Gimbal: fix operator==
- Loading branch information
Showing
2 changed files
with
132 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.