diff options
| author | Christoph Berg <myon@debian.org> | 2025-01-09 22:12:06 +0100 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2025-01-09 22:12:06 +0100 |
| commit | 992d4b4b8d3f3a630a2cf00d593ee4ce4dfa7ce8 (patch) | |
| tree | fbfdfe6bcb0a8a114be2480dac53d88c977e4869 /helper_functions.cpp | |
| parent | 4320ce238aae1fe87fc9f379cdd816e9317885fa (diff) | |
New upstream version 2.7.0~rc8+repackupstream/2.7.0_rc8+repack
Diffstat (limited to 'helper_functions.cpp')
| -rwxr-xr-x | helper_functions.cpp | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/helper_functions.cpp b/helper_functions.cpp index 8d0c63c1..706c427e 100755 --- a/helper_functions.cpp +++ b/helper_functions.cpp @@ -1,33 +1,33 @@ -#include "helper_functions.h"
-
-double tx_duration(QString mode, double trPeriod, int nsps, bool bFast9)
-{
- double txt=0.0;
- if(mode=="FT4") txt=1.0 + 105*576/12000.0; // FT4
- if(mode=="FT8") txt=1.0 + 79*1920/12000.0; // FT8
- if(mode=="JT4") txt=1.0 + 207.0*2520/11025.0; // JT4
- if(mode=="JT9") txt=1.0 + 85.0*nsps/12000.0; // JT9
- if(mode=="JT65") txt=1.0 + 126*4096/11025.0; // JT65
- if(mode=="Q65") { // Q65
- if(trPeriod==15) txt=0.5 + 85*1800/12000.0;
- if(trPeriod==30) txt=0.5 + 85*3600/12000.0;
- if(trPeriod==60) txt=1.0 + 85*7200/12000.0;
- if(trPeriod==120) txt=1.0 + 85*16000/12000.0;
- if(trPeriod==300) txt=1.0 + 85*41472/12000.0;
- }
- if(mode=="WSPR") txt=2.0 + 162*8192/12000.0; // WSPR
- if(mode=="FST4" or mode=="FST4W") { //FST4, FST4W
- if(trPeriod==15) txt=1.0 + 160*720/12000.0;
- if(trPeriod==30) txt=1.0 + 160*1680/12000.0;
- if(trPeriod==60) txt=1.0 + 160*3888/12000.0;
- if(trPeriod==120) txt=1.0 + 160*8200/12000.0;
- if(trPeriod==300) txt=1.0 + 160*21504/12000.0;
- if(trPeriod==900) txt=1.0 + 160*66560/12000.0;
- if(trPeriod==1800) txt=1.0 + 160*134400/12000.0;
- }
- if(mode=="MSK144" or bFast9) {
- txt=trPeriod-0.25; // JT9-fast, MSK144
- }
- if(mode=="Echo") txt=2.4;
- return txt;
-}
+#include "helper_functions.h" + +double tx_duration(QString mode, double trPeriod, int nsps, bool bFast9) +{ + double txt=0.0; + if(mode=="FT4") txt=1.0 + 105*576/12000.0; // FT4 + if(mode=="FT8") txt=1.0 + 79*1920/12000.0; // FT8 + if(mode=="JT4") txt=1.0 + 207.0*2520/11025.0; // JT4 + if(mode=="JT9") txt=1.0 + 85.0*nsps/12000.0; // JT9 + if(mode=="JT65") txt=1.0 + 126*4096/11025.0; // JT65 + if(mode=="Q65") { // Q65 + if(trPeriod==15) txt=0.5 + 85*1800/12000.0; + if(trPeriod==30) txt=0.5 + 85*3600/12000.0; + if(trPeriod==60) txt=1.0 + 85*7200/12000.0; + if(trPeriod==120) txt=1.0 + 85*16000/12000.0; + if(trPeriod==300) txt=1.0 + 85*41472/12000.0; + } + if(mode=="WSPR") txt=2.0 + 162*8192/12000.0; // WSPR + if(mode=="FST4" or mode=="FST4W") { //FST4, FST4W + if(trPeriod==15) txt=1.0 + 160*720/12000.0; + if(trPeriod==30) txt=1.0 + 160*1680/12000.0; + if(trPeriod==60) txt=1.0 + 160*3888/12000.0; + if(trPeriod==120) txt=1.0 + 160*8200/12000.0; + if(trPeriod==300) txt=1.0 + 160*21504/12000.0; + if(trPeriod==900) txt=1.0 + 160*66560/12000.0; + if(trPeriod==1800) txt=1.0 + 160*134400/12000.0; + } + if(mode=="MSK144" or bFast9) { + txt=trPeriod-0.25; // JT9-fast, MSK144 + } + if(mode=="Echo") txt=2.4; + return txt; +} |
