Updated this further - now we have an array with all the primary symbols in it, a bit of comparison and a switch statement that will print/place image depending on the symbol. Felt this looked a bit better than 72 if statements, and a bit easier to maintain too.
Changed packet parse behaviour to ignore any non-primary symbol packets for the moment, but that's easily changed.
Included some of the "classic" image set as a stopgap solution until we get our own, and also to prove it all works.
Might be good to split all the packet identification stuff to a different file - I had a look but my tiny brain can't handle the pain just now.
Glade has reordered the UI file for some reason, but it still works apart from APRS-IS tab. Will fix tomorrow.
Updated this further - now we have an array with all the primary symbols in it, a bit of comparison and a switch statement that will print/place image depending on the symbol. Felt this looked a bit better than 72 if statements, and a bit easier to maintain too.
Changed packet parse behaviour to ignore any non-primary symbol packets for the moment, but that's easily changed.
Included some of the "classic" image set as a stopgap solution until we get our own, and also to prove it all works.
Might be good to split all the packet identification stuff to a different file - I had a look but my tiny brain can't handle the pain just now.
Glade has reordered the UI file for some reason, but it still works apart from APRS-IS tab. Will fix tomorrow.