From 3cb9e1849b0e6a97c38d377c14208795522a028c Mon Sep 17 00:00:00 2001 From: Arjan Onwezen Date: Sun, 12 Dec 2021 04:38:05 -0500 Subject: [PATCH] added ICAO special designators, to aircraft types --- firmware/application/apps/ui_adsb_rx.cpp | 26 ++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/firmware/application/apps/ui_adsb_rx.cpp b/firmware/application/apps/ui_adsb_rx.cpp index 88cd87bd..d065163a 100644 --- a/firmware/application/apps/ui_adsb_rx.cpp +++ b/firmware/application/apps/ui_adsb_rx.cpp @@ -206,6 +206,32 @@ ADSBRxAircraftDetailsView::ADSBRxAircraftDetailsView( break; } + } + // check for ICAO type designator + else if(strlen(file_buffer) == 4) { + switch(file_buffer[0]) { + case 'SHIP': + text_type.set("Airship"); + break; + case 'BALL': + text_type.set("Balloon"); + break; + case 'GLID': + text_type.set("Glider / sailplane"); + break; + case 'ULAC': + text_type.set("Micro/ultralight aircraft"); + break; + case 'GYRO': + text_type.set("Micro/ultralight autogyro"); + break; + case 'UHEL': + text_type.set("Micro/ultralight helicopter"); + break; + case 'PARA': + text_type.set("Powered parachute/paraplane"); + break; + } } db_file.read(file_buffer, 32); text_owner.set(file_buffer);