Remove scheduler debug writes to stdout, clean up hopping.f90, add next_hopping_band() function.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@5541 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Steven Franke
2015-06-05 23:03:32 +00:00
parent 29b24c4ca0
commit 4f6904943b
4 changed files with 17 additions and 174 deletions
+5 -4
View File
@@ -19,8 +19,8 @@ extern "C"
#else
#include "FC.h"
void FC_hopping (int const * year, int const * month, int const * nday, float const * uth, char const * my_grid
, int const * nduration, int const * npctx, int * isun, int * iband
, int * ntxnext, int my_grid_len);
, int const * nduration, int * isun
, int my_grid_len);
#endif
};
@@ -263,11 +263,12 @@ auto WSPRBandHopping::next_hop () -> Hop
// look up band for this period
FC_hopping (&year, &month, &day, &uth, my_grid.toLatin1 ().constData ()
, &m_->gray_line_duration_, &m_->tx_percent_, &period_index, &band_index
, &tx_next, my_grid.size ());
, &m_->gray_line_duration_, &period_index
, my_grid.size ());
// consult scheduler to determine if next period should be a tx interval
tx_next = next_tx_state(m_->tx_percent_);
band_index = next_hopping_band();
if (100 == m_->tx_percent_)
{