Commit 776d378
alireza787b
mocap: wire up reset_counter, estimator_type, quality from proto fields
Replace hardcoded values with the corresponding proto fields added
in mavlink/MAVSDK-Proto#395:
- send_vision_position_estimate: use reset_counter field instead of
hardcoded 0 (resolves the FIXME comment)
- send_odometry: use reset_counter, estimator_type, quality fields
instead of hardcoded 0/MAV_ESTIMATOR_TYPE_MOCAP/0
Also fixes frame_id mapping: the proto MavFrame enum uses values that
don't match MAVLink (0 instead of 14 for MOCAP_NED), so add a switch
to map to correct MAVLink MAV_FRAME values. For backward compatibility,
estimator_type defaults to MAV_ESTIMATOR_TYPE_MOCAP when set to UNKNOWN.1 parent d42e9f2 commit 776d378
1 file changed
+25
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
219 | 239 | | |
220 | 240 | | |
221 | 241 | | |
222 | 242 | | |
223 | 243 | | |
224 | | - | |
| 244 | + | |
225 | 245 | | |
226 | 246 | | |
227 | 247 | | |
| |||
235 | 255 | | |
236 | 256 | | |
237 | 257 | | |
238 | | - | |
239 | | - | |
240 | | - | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
241 | 261 | | |
242 | 262 | | |
243 | 263 | | |
| |||
0 commit comments