Re: [wsjt-devel] Small code misunderstanding

2017-07-08 Thread Alessandro Gorobey via wsjt-devel

Hi,

this simple patch solve the problem.

Compliments for the new mode !!

Il 05/07/2017 23:02, Alessandro Gorobey via wsjt-devel ha scritto:

Hi All,

searching for incorrect psk reporter frequency report (no audio offset) 
I see the code in decodedtext.h and decodedtext.cpp.


fixed position parameters are used, so in FT8 seems wrong results.

Line 2768 in r7782 of mainwindow.cpp
   int audioFrequency = decodedtext.frequencyOffset();
   int snr = decodedtext.snr();
   Frequency frequency = m_freqNominal + audioFrequency;

decoded in JT65:
1627 -21  0.1 1589 #  IW3RAB G0JEI -11
decoded in FT8
150215 -16 -0.0 1869 ~  IW3RAB IV3KAS 73

So, as is calculated audioFrequency ?

Thanks



--
73
Sandro
IW3RAB
Index: mainwindow.cpp
===
--- mainwindow.cpp  (revision 7812)
+++ mainwindow.cpp  (working copy)
@@ -2800,6 +2800,7 @@
   QString grid;
   decodedtext.deCallAndGrid(/*out*/deCall,grid);
   int audioFrequency = decodedtext.frequencyOffset();
+  if(m_mode=="FT8") audioFrequency=decodedtext.string().mid(16,4).toInt();  
//FT8 only
   int snr = decodedtext.snr();
   Frequency frequency = m_freqNominal + audioFrequency;
   pskSetLocal ();
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
wsjt-devel mailing list
wsjt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wsjt-devel


[wsjt-devel] Small code misunderstanding

2017-07-05 Thread Alessandro Gorobey via wsjt-devel

Hi All,

searching for incorrect psk reporter frequency report (no audio offset) 
I see the code in decodedtext.h and decodedtext.cpp.


fixed position parameters are used, so in FT8 seems wrong results.

Line 2768 in r7782 of mainwindow.cpp
  int audioFrequency = decodedtext.frequencyOffset();
  int snr = decodedtext.snr();
  Frequency frequency = m_freqNominal + audioFrequency;

decoded in JT65:
1627 -21  0.1 1589 #  IW3RAB G0JEI -11
decoded in FT8
150215 -16 -0.0 1869 ~  IW3RAB IV3KAS 73

So, as is calculated audioFrequency ?

Thanks

--
73
Sandro
IW3RAB

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
wsjt-devel mailing list
wsjt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wsjt-devel