Finish connecting moondopjpl() to the JPL ephemeris file.

This commit is contained in:
Joe Taylor
2023-02-17 10:25:07 -05:00
parent c73fd39d47
commit b61e8aeb24
2 changed files with 26 additions and 6 deletions
+5
View File
@@ -187,6 +187,8 @@ extern "C" {
void indexx_(float arr[], int* n, int indx[]);
void get_q3list_(char* fname, int* nlist, char* list, FCL len1, FCL len2);
void jpl_setup_(char* fname, FCL len);
}
int volatile itone[MAX_NUM_SYMBOLS]; //Audio tones for all Tx symbols
@@ -1078,6 +1080,9 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple,
ui->labDXped->setStyleSheet("QLabel {background-color: red; color: white;}");
ui->pbBestSP->setVisible(m_mode=="FT4");
QString jpleph = m_config.data_dir().absoluteFilePath("JPLEPH");
jpl_setup_(const_cast<char *>(jpleph.toLocal8Bit().constData()),256);
// this must be the last statement of constructor
if (!m_valid) throw std::runtime_error {"Fatal initialization exception"};
}