[Swlug] Quick Pythom question.

Rhys Sage rhys_sage at yahoo.com
Thu Jul 14 18:17:10 UTC 2022


I found all the Python code for the L76D/L76X was flaky. I've since found the answer to my question but then discovered just how flaky the stuff on GitHub was and have been working on my own solution.

The biggest hold up was data type. I'd assumed I was working with string since the incoming data was referred to as string within the wonky GitHub code. It transpired during a trace that half of the code never actually executed and of that that did, the coder was trying to generate Baidu and Glonass signals from the location produced solely by the $GNRMC record which is actually an average of all 3. There were no separate records to claim. I should have been alerted to that by the fact the coder referred to "Goodle" rather than "Google". Anyway, after executing a Type investigation I found the original data was Byte and had to do a UTF8 conversion. That meant everything is then plain sailing (ish).

I'm going to have to rewrite what I've done so far because some of the $GNRMC fields are of variable length. Handling it all as text using index and so on has worked wonders. 

Working on my lonesome is a bit frustrating at times.



More information about the Swlug mailing list