Commit b93f4c6
committed
Refactor camera tracking and on-screen gimbal support
Camera Tracking Interface:
- Remove flawed TrackingStatus bitmask enum
- Separate point/rect tracking into distinct properties
- Rename signals to match property names (trackingImageIsActiveChanged, etc.)
- Add supportsTrackingPoint/supportsTrackingRect Q_PROPERTYs
- Split startTracking() overloads into startTrackingPoint()/startTrackingRect()
- Add capability guards with qCCritical to both methods
- setTrackingEnabled(false) now calls stopTracking() to notify vehicle
- Cache hasTrackingImageStatus to prevent redundant signal emissions
- Zero-initialize _trackingImageStatus struct
FlyView Mouse Handling:
- Extract camera tracking into OnScreenCameraTrackingController.qml
- Refactor OnScreenGimbalController to method-based API
- Clean 4-method API: mouseClicked/mouseDragStart/mouseDragPositionChanged/mouseDragEnd
- Add click vs drag separation with 10px threshold
- Remove hoverEnabled (unnecessary in full-screen mode)
- Fix operator precedence bug in tracking status overlay
- Fix mode guards bug in gimbal controller (was !value == 0)
- Fix ROI rectangle resize on drag direction reversal
- Declarative tracking status overlay (replaces imperative createObject/timer)
- Gimbal rate timer unconditionally stopped in mouseDragEnd
MockLink:
- Add tracking simulation with figure-8 drift animation
- Handle TRACK_POINT, TRACK_RECTANGLE, STOP_TRACKING commands
- Handle SET_MESSAGE_INTERVAL for CAMERA_TRACKING_IMAGE_STATUS
- Capability-gated commands (DENIED if flag not set)
Gimbal Settings:
- Rename ControlType to clickAndDrag boolean
Relates-to: #13363
Relates-to: #139571 parent 0b99d8b commit b93f4c6
File tree
18 files changed
+549
-321
lines changed- src
- Camera
- Comms/MockLink
- FlyView
- Gimbal
- Settings
- UI/toolbar
18 files changed
+549
-321
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
47 | 49 | | |
48 | 50 | | |
49 | 51 | | |
| |||
74 | 76 | | |
75 | 77 | | |
76 | 78 | | |
| 79 | + | |
| 80 | + | |
77 | 81 | | |
78 | | - | |
79 | | - | |
80 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
81 | 87 | | |
82 | 88 | | |
83 | 89 | | |
| |||
141 | 147 | | |
142 | 148 | | |
143 | 149 | | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | 150 | | |
153 | 151 | | |
154 | 152 | | |
| |||
165 | 163 | | |
166 | 164 | | |
167 | 165 | | |
168 | | - | |
169 | | - | |
| 166 | + | |
| 167 | + | |
170 | 168 | | |
171 | 169 | | |
172 | 170 | | |
| |||
182 | 180 | | |
183 | 181 | | |
184 | 182 | | |
| 183 | + | |
| 184 | + | |
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| |||
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
242 | | - | |
243 | | - | |
244 | | - | |
| 242 | + | |
| 243 | + | |
245 | 244 | | |
| 245 | + | |
| 246 | + | |
246 | 247 | | |
247 | 248 | | |
248 | 249 | | |
| |||
286 | 287 | | |
287 | 288 | | |
288 | 289 | | |
289 | | - | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
290 | 295 | | |
291 | 296 | | |
292 | 297 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
796 | 796 | | |
797 | 797 | | |
798 | 798 | | |
799 | | - | |
800 | | - | |
| 799 | + | |
| 800 | + | |
801 | 801 | | |
802 | 802 | | |
803 | 803 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
| 38 | + | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
55 | 57 | | |
56 | 58 | | |
57 | 59 | | |
| |||
105 | 107 | | |
106 | 108 | | |
107 | 109 | | |
108 | | - | |
109 | | - | |
110 | | - | |
| 110 | + | |
| 111 | + | |
111 | 112 | | |
| 113 | + | |
| 114 | + | |
112 | 115 | | |
113 | 116 | | |
114 | 117 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
| |||
130 | 132 | | |
131 | 133 | | |
132 | 134 | | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
142 | 138 | | |
143 | 139 | | |
144 | 140 | | |
| |||
1693 | 1689 | | |
1694 | 1690 | | |
1695 | 1691 | | |
1696 | | - | |
1697 | | - | |
| 1692 | + | |
| 1693 | + | |
| 1694 | + | |
| 1695 | + | |
1698 | 1696 | | |
1699 | | - | |
1700 | | - | |
1701 | | - | |
1702 | | - | |
| 1697 | + | |
| 1698 | + | |
| 1699 | + | |
| 1700 | + | |
| 1701 | + | |
| 1702 | + | |
| 1703 | + | |
| 1704 | + | |
| 1705 | + | |
1703 | 1706 | | |
1704 | | - | |
1705 | | - | |
1706 | | - | |
1707 | | - | |
1708 | | - | |
1709 | | - | |
1710 | | - | |
| 1707 | + | |
| 1708 | + | |
| 1709 | + | |
| 1710 | + | |
| 1711 | + | |
| 1712 | + | |
| 1713 | + | |
| 1714 | + | |
| 1715 | + | |
| 1716 | + | |
| 1717 | + | |
| 1718 | + | |
| 1719 | + | |
| 1720 | + | |
| 1721 | + | |
| 1722 | + | |
| 1723 | + | |
| 1724 | + | |
| 1725 | + | |
| 1726 | + | |
| 1727 | + | |
| 1728 | + | |
| 1729 | + | |
| 1730 | + | |
1711 | 1731 | | |
1712 | | - | |
1713 | | - | |
1714 | | - | |
1715 | | - | |
1716 | | - | |
1717 | | - | |
1718 | | - | |
1719 | | - | |
1720 | | - | |
1721 | | - | |
1722 | 1732 | | |
1723 | 1733 | | |
1724 | | - | |
| 1734 | + | |
| 1735 | + | |
| 1736 | + | |
| 1737 | + | |
| 1738 | + | |
| 1739 | + | |
| 1740 | + | |
| 1741 | + | |
1725 | 1742 | | |
1726 | 1743 | | |
1727 | 1744 | | |
| |||
2323 | 2340 | | |
2324 | 2341 | | |
2325 | 2342 | | |
2326 | | - | |
2327 | | - | |
2328 | | - | |
2329 | | - | |
| 2343 | + | |
| 2344 | + | |
| 2345 | + | |
| 2346 | + | |
| 2347 | + | |
| 2348 | + | |
2330 | 2349 | | |
2331 | 2350 | | |
2332 | 2351 | | |
2333 | 2352 | | |
2334 | | - | |
| 2353 | + | |
2335 | 2354 | | |
| 2355 | + | |
| 2356 | + | |
| 2357 | + | |
| 2358 | + | |
| 2359 | + | |
2336 | 2360 | | |
2337 | 2361 | | |
2338 | 2362 | | |
| |||
2350 | 2374 | | |
2351 | 2375 | | |
2352 | 2376 | | |
2353 | | - | |
| 2377 | + | |
2354 | 2378 | | |
| 2379 | + | |
| 2380 | + | |
| 2381 | + | |
| 2382 | + | |
| 2383 | + | |
2355 | 2384 | | |
2356 | 2385 | | |
2357 | 2386 | | |
| |||
2383 | 2412 | | |
2384 | 2413 | | |
2385 | 2414 | | |
2386 | | - | |
| 2415 | + | |
2387 | 2416 | | |
| 2417 | + | |
| 2418 | + | |
| 2419 | + | |
| 2420 | + | |
| 2421 | + | |
| 2422 | + | |
| 2423 | + | |
| 2424 | + | |
| 2425 | + | |
| 2426 | + | |
2388 | 2427 | | |
2389 | 2428 | | |
2390 | 2429 | | |
| |||
0 commit comments