diff options
| author | tony mancill <tmancill@debian.org> | 2023-09-03 19:46:51 -0700 |
|---|---|---|
| committer | tony mancill <tmancill@debian.org> | 2023-09-03 19:46:51 -0700 |
| commit | 1fc24d9474229c0f382da5def559f5de7b903f86 (patch) | |
| tree | 8a745660a498dbd6209a198679b821799f107024 /map65/mainwindow.cpp | |
| parent | 65e5ae53a0358d9a3d040b13e0cf84556a7b4812 (diff) | |
| parent | 393a486ee1d7e308a49f8e0b8c3a4b2f43223248 (diff) | |
Update upstream source from tag 'upstream/2.7.0_rc2+repack'
Update to upstream version '2.7.0~rc2+repack'
with Debian dir c24f4e90e5ec8585c79007453c538689dc460e86
Diffstat (limited to 'map65/mainwindow.cpp')
| -rwxr-xr-x | map65/mainwindow.cpp | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/map65/mainwindow.cpp b/map65/mainwindow.cpp index bf7a663e..ae1940f4 100755 --- a/map65/mainwindow.cpp +++ b/map65/mainwindow.cpp @@ -1293,7 +1293,25 @@ void MainWindow::decode() //decode() datcom_.mousefqso=m_wide_graph_window->QSOfreq();
datcom_.ndepth=m_ndepth;
datcom_.ndiskdat=0;
- if(m_diskData) datcom_.ndiskdat=1;
+ if(m_diskData) {
+ datcom_.ndiskdat=1;
+ int i0=m_path.indexOf(".tf2");
+ if(i0<0) i0=m_path.indexOf(".iq");
+ if(i0>0) {
+ // Compute self Doppler using the filename for Date and Time
+ int nyear=m_path.mid(i0-11,2).toInt()+2000;
+ int month=m_path.mid(i0-9,2).toInt();
+ int nday=m_path.mid(i0-7,2).toInt();
+ int nhr=m_path.mid(i0-4,2).toInt();
+ int nmin=m_path.mid(i0-2,2).toInt();
+ double uth=nhr + nmin/60.0;
+ int nfreq=(int)datcom_.fcenter;
+ int ndop00;
+
+ astrosub00_(&nyear, &month, &nday, &uth, &nfreq, m_myGrid.toLatin1(),&ndop00,6);
+ datcom_.nfast=ndop00; //Send self Doppler to decoder, via datcom
+ }
+ }
datcom_.neme=0;
if(ui->actionOnly_EME_calls->isChecked()) datcom_.neme=1;
@@ -1322,7 +1340,7 @@ void MainWindow::decode() //decode() datcom_.nxpol=0;
if(m_xpol) datcom_.nxpol=1;
datcom_.nmode=10*m_modeQ65 + m_modeJT65;
- datcom_.nfast=1; //No longer used
+// datcom_.nfast=1; //No longer used
datcom_.nsave=m_nsave;
datcom_.max_drift=ui->sbMaxDrift->value();
|
