Francklin2 / RTKLIB_Touchscreen_GUI

RTKLIB GUI for Raspberry Pi with touchscreen made with Qt by the ENSG students
175 stars 63 forks source link

Transmited Base Position is not complete(nothing after the dot) #11

Closed Francklin2 closed 8 years ago

Francklin2 commented 8 years ago

Now base position is transmited to the rover but when you enter Lat= 48.2508 Long= 2.8546 Height= 145.23 rover only receive Lat= 48,000 Long= 2,000 Height= 145,000 . I will try with a , instead of . in the gui to see if changes something. (After this issue base should be opérationnal, I didn't check if this issue affect Release 1.0 or the automatic mode) . before applying the strinf there is a :

m_str1.replace(",","."); So I think a , should only be used to have a . in the string

Francklin2 commented 8 years ago

After a few tests , I saw that the problem also affect the automatic mode. If I try with original str2str with 48.2355 position got décimals, if I try with 48,2355 I will have a 48.0000. It's also possible that the soft goes to next line before reading décimal, as the position is diplayed correctly in the STR2STR current options windows (it's always write with dots so it should be correct for the str2str syntax).

Francklin2 commented 8 years ago

I have to remove the m_str1.replace(",","."); line to get décimal on position value, I also have to put the -p (position option) at the end of the string. In manual mode, user will have to put , in coordinates like this :48,2546. I upload the new code and close the issue if it still work correctly

Francklin2 commented 8 years ago

After tests, decimal in base position is ok if you put a , so I will add a info about that in the wiki and close this issue

Francklin2 commented 8 years ago

I will change the wiki for the next version so I close the issue for the moment