diff options
| author | tony mancill <tmancill@debian.org> | 2023-09-03 19:46:43 -0700 |
|---|---|---|
| committer | tony mancill <tmancill@debian.org> | 2023-09-03 19:46:43 -0700 |
| commit | 393a486ee1d7e308a49f8e0b8c3a4b2f43223248 (patch) | |
| tree | 6a6e8a56ace360795e1cf1a310d5652bb23f1386 /map65/mainwindow.cpp | |
| parent | 6a285ab382ebff18c88e52bec75dc1773ac33b74 (diff) | |
New upstream version 2.7.0~rc2+repackupstream/2.7.0_rc2+repack
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();
|
