microp11 / iridiumlive

web visualizer for gr-iridium frames
GNU General Public License v3.0
49 stars 11 forks source link

Coordinates 2 #13

Closed radioman1511 closed 4 years ago

radioman1511 commented 4 years ago

Under Debian 9 and 10 the program does not work properly (coordinates wrong), if I start and debug in terminal with kdbg IridiumLive what a miracle, it works and the marker is set correctly, I don't know what the error is. Without the debugger kdbg it´s not work . The parser works well and the Udp packets it´s right. grts radioman1511 IridiumLive.zip

radioman1511 commented 4 years ago

grafik

radioman1511 commented 4 years ago

with kdbg IridiumLive grafik

radioman1511 commented 4 years ago

grafik IridiumLive running under kdbg-debugger no errors

microp11 commented 4 years ago

Under Debian 9 and 10 the program does not work properly (coordinates wrong), if I start and debug in terminal with kdbg IridiumLive what a miracle, it works and the marker is set correctly, I don't know what the error is. Without the debugger kdbg it´s not work . The parser works well and the Udp packets it´s right. grts radioman1511 IridiumLive.zip

Add console output after the initial split. And run it real time. If the output is correct do the same until you find the part that fails. Replace the code that fails with a similar processing using substrings. Regular expressions even if you will.

radioman1511 commented 4 years ago

Next try , with Raspberry pi3 b debian buster same error no luck.grts radioman1511

microp11 commented 4 years ago

Duplicate of #12

microp11 commented 4 years ago

The code uses System.Convert.ToDouble(string-value) and the output is from a system whose current culture is en-US. I assume the culture on your system is different. You can try replacing the code with something like: Convert.ToDouble(string-value, System.Globalization.CultureInfo.InvariantCulture); use any of these: https://social.msdn.microsoft.com/Forums/vstudio/en-US/c0696afe-ad84-468b-a7a1-800bc45ab07b/culture-independent-converttodouble?forum=csharpgeneral and let me know which one works. or let me know what is the culture on your system so i can try it as well. Thanks.

microp11 commented 4 years ago

I will also address this in the code. Will let you know when committed.

microp11 commented 4 years ago

Check this commit: https://github.com/microp11/iridiumlive/commit/49308a52a0805a3142b3b920b73e2da5b7253b3a

radioman1511 commented 4 years ago

Best job. Now the coordinates are passed correctly. Thank you, you are the best. merry christmas

radioman1511 commented 4 years ago

grafik

microp11 commented 4 years ago

Thanks for the reports. Merry Christmas.