Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parser should be more specific based on the symbo table #82

Open
acasadoalonso opened this issue Aug 30, 2020 · 4 comments
Open

Parser should be more specific based on the symbo table #82

acasadoalonso opened this issue Aug 30, 2020 · 4 comments
Labels

Comments

@acasadoalonso
Copy link

The OGN parser could return the aircraft type based on the APRS symbols use to separate latitude and longitude and at the end of the longitude.
It could use the following table:

static const char *AprsIcon[16] = // Icons for various FLARM acftType's
{ "/z", // 0 = ?
"/'", // 1 = (moto-)glider (most frequent)
"/'", // 2 = tow plane (often)
"/X", // 3 = helicopter (often)
"/g" , // 4 = parachute (rare but seen - often mixed with drop plane)
"\^", // 5 = drop plane (seen)
"/g" , // 6 = hang-glider (rare but seen)
"/g" , // 7 = para-glider (rare but seen)
"\^", // 8 = powered aircraft (often)
"/^", // 9 = jet aircraft (rare but seen)
"/z", // A = UFO (people set for fun)
"/O", // B = balloon (seen once)
"/O", // C = airship (seen once)
"/'", // D = UAV (drones, can become very common)
"/z", // E = ground support (ground vehicles at airfields)
"\n" // F = static object (ground relay ?)
} ;

so for example on this APRS message:

FNT1103CE>OGNFNT,qAS,FNB1103CE:/183736h5057.94N/00801.00Eg354/001/A=001042 !W40! id1E1103CE -02fpm

the symbols are: / and g so it means a hang glider
on this other APRS message:

FNT1118C1>OGNFNT,qAS,BelaVista:/191929h3841.98N\00919.39Wn !W68! id3E1118C1 FNT71 28.8dB -12.3kHz

the symbols are: \ and n so it means a static object or ground relay station.

Thanks again for the great support.
AC/.

@acasadoalonso
Copy link
Author

I just submitted a PR with the enhancement

@Meisterschueler
Copy link
Collaborator

Meisterschueler commented Aug 31, 2020

The parser provides the fields "symboltable" and "symbolcode". These fields are the key for the 192 possible APRS icons. I dont see any advantage to provide for some combinations an english string. Did you also check the performance impact?

@acasadoalonso
Copy link
Author

acasadoalonso commented Sep 1, 2020 via email

@Meisterschueler
Copy link
Collaborator

Seems to me that there is no exact specification of the meaning of symboltable + symbolcode. It does not make any sense to provide the mapping for just 16 (or 192) combinations if they are not standarized in any way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants