mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-08-07 16:32:27 -04:00
Let MAP65 compute self Doppler using *.iq filename values for date and time.
This commit is contained in:
parent
32411d1fd0
commit
5daa5f301d
@ -12,3 +12,15 @@ subroutine astrosub(nyear,month,nday,uth8,nfreq,mygrid,hisgrid, &
|
|||||||
|
|
||||||
return
|
return
|
||||||
end subroutine astrosub
|
end subroutine astrosub
|
||||||
|
|
||||||
|
subroutine astrosub00(nyear,month,nday,uth8,nfreq,mygrid,ndop00)
|
||||||
|
|
||||||
|
implicit real*8 (a-h,o-z)
|
||||||
|
character*6 mygrid
|
||||||
|
|
||||||
|
call astrosub(nyear,month,nday,uth8,nfreq,mygrid,mygrid, &
|
||||||
|
AzSun8,ElSun8,AzMoon8,ElMoon8,AzMoonB8,ElMoonB8,ntsky,ndop,ndop00, &
|
||||||
|
RAMoon8,DecMoon8,Dgrd8,poloffset8,xnr8)
|
||||||
|
|
||||||
|
return
|
||||||
|
end subroutine astrosub00
|
||||||
|
@ -1293,7 +1293,25 @@ void MainWindow::decode() //decode()
|
|||||||
datcom_.mousefqso=m_wide_graph_window->QSOfreq();
|
datcom_.mousefqso=m_wide_graph_window->QSOfreq();
|
||||||
datcom_.ndepth=m_ndepth;
|
datcom_.ndepth=m_ndepth;
|
||||||
datcom_.ndiskdat=0;
|
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;
|
datcom_.neme=0;
|
||||||
if(ui->actionOnly_EME_calls->isChecked()) datcom_.neme=1;
|
if(ui->actionOnly_EME_calls->isChecked()) datcom_.neme=1;
|
||||||
|
|
||||||
|
@ -322,6 +322,9 @@ extern "C" {
|
|||||||
int len1, int len2);
|
int len1, int len2);
|
||||||
|
|
||||||
int ptt_(int* nport, int* itx, int* iptt);
|
int ptt_(int* nport, int* itx, int* iptt);
|
||||||
|
|
||||||
|
void astrosub00_ (int* nyear, int* month, int* nday, double* uth, int* nfreq,
|
||||||
|
const char* mygrid, int* ndop00, int len1);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // MAINWINDOW_H
|
#endif // MAINWINDOW_H
|
||||||
|
Loading…
x
Reference in New Issue
Block a user