Files
mayhem-firmware/firmware/application/apps
Copilot 483a100100 Fix ADSB altitude integer overflow and add on-ground indicator (#3275)
* Initial plan

* Fix ADSB altitude integer overflow and add on-ground indicator

- Fix display overflow: use to_string_dec_int (signed) instead of
  to_string_dec_uint (unsigned) for altitude display - per ICAO Annex 10
  Vol IV 3.1.2.6.5.4, altitude = 25N-1000 can be as low as -1000ft
- Remove incorrect altitude clamp (altitude < 0 => 0) in DF 0/4/20 decoder
- Add on_ground flag to AircraftRecentEntry; set from TC 5-8 (surface
  position) messages, cleared on TC 9-22 (airborne position) messages
- Display 'GND' in altitude column when aircraft is on ground
- Clear altitude to 0 when on_ground is set to prevent stale data in map
  color calculation

Closes #3274

* Revert on-ground indicator; keep only the overflow and clamp fixes

Remove on_ground field, TC 5-8 handling, and "GND" display per review
feedback. Only keep the two minimal bug fixes:
- Signed altitude display (to_string_dec_int vs to_string_dec_uint)
- Remove erroneous altitude < 0 clamp; update comment to show the math
2026-07-23 01:16:21 +02:00
..
2025-12-14 11:26:21 +01:00
2025-08-11 07:42:58 +02:00
2026-05-10 00:08:05 +02:00
2026-05-21 15:50:10 +02:00
2026-05-21 15:50:10 +02:00
2023-05-19 08:16:05 +12:00
2025-12-06 07:34:10 -08:00
2023-11-03 08:08:49 +01:00
2026-06-19 07:48:55 +02:00
2026-05-30 08:24:20 +02:00
2026-05-07 23:54:30 +08:00
2026-02-22 20:53:26 +01:00
2023-09-12 12:38:19 -07:00
2024-05-27 21:02:52 +02:00
2025-11-26 19:13:21 +01:00
2025-11-26 19:13:21 +01:00
2026-02-16 17:52:47 +01:00
2026-02-16 17:52:47 +01:00
2025-10-16 13:00:40 +02:00
2025-10-16 13:00:40 +02:00