Commit affff0c
mavproxy_adsb: don't render real ADSB aircraft as the OBC flag icon
add_vehicle() was deriving emitter_type purely from
get_internal_emitter(state['ICAO_address']), which is an OBC test
helper: it maps a handful of synthetic ICAO bands (drones, weather,
birds, OBC aircraft) to specific internal types and falls through to
99 ('flag.png', commented "dummy it for now") for everything else.
Real-world ADSB feeds supply genuine 24-bit ICAOs in the
0x004000..0x9FFFFF range, so every live aircraft was being shown as
the flag placeholder instead of a plane.
Only consult get_internal_emitter() for ICAOs inside the OBC bands
(<=0x003FFF or >=0xA00000); for everything else trust the supplied
state['emitter_type'] so live ADSB data displays with its proper
ADSB_EMITTER_TYPE icon.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 61a4e08 commit affff0c
1 file changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
242 | | - | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
243 | 253 | | |
244 | 254 | | |
245 | 255 | | |
| |||
0 commit comments