Add NB = -3% option to cycle through NB=0, 1, 2, 3, ... 20%.

This commit is contained in:
Joe Taylor 2020-09-30 13:32:03 -04:00
parent b56ce23f38
commit 9200c3e27a
3 changed files with 6 additions and 4 deletions

View File

@ -227,7 +227,7 @@ contains
ndropmax=1 ndropmax=1
single_decode=iand(nexp_decode,32).ne.0 single_decode=iand(nexp_decode,32).ne.0
npct=0 npct=0
nb=nexp_decode/256 - 2 nb=nexp_decode/256 - 3
if(nb.ge.0) npct=nb if(nb.ge.0) npct=nb
inb1=20 inb1=20
inb2=5 inb2=5
@ -235,6 +235,8 @@ contains
inb2=5 !Try NB = 0, 5, 10, 15, 20% inb2=5 !Try NB = 0, 5, 10, 15, 20%
else if(nb.eq.-2) then else if(nb.eq.-2) then
inb2=2 !Try NB = 0, 2, 4,... 20% inb2=2 !Try NB = 0, 2, 4,... 20%
else if(nb.eq.-3) then
inb2=1 !Try NB = 0, 1, 2,... 20%
else else
inb1=0 !Fixed NB value, 0 to 25% inb1=0 !Fixed NB value, 0 to 25%
ipct(0)=npct ipct(0)=npct
@ -900,6 +902,6 @@ contains
enddo enddo
return return
end subroutine dopspread end subroutine dopspread
end module fst4_decode end module fst4_decode

View File

@ -3120,7 +3120,7 @@ void MainWindow::decode() //decode()
dec_data.params.nexp_decode = static_cast<int> (m_config.special_op_id()); dec_data.params.nexp_decode = static_cast<int> (m_config.special_op_id());
if(m_config.single_decode()) dec_data.params.nexp_decode += 32; if(m_config.single_decode()) dec_data.params.nexp_decode += 32;
if(m_config.enable_VHF_features()) dec_data.params.nexp_decode += 64; if(m_config.enable_VHF_features()) dec_data.params.nexp_decode += 64;
if(m_mode.startsWith("FST4")) dec_data.params.nexp_decode += 256*(ui->sbNB->value()+2); if(m_mode.startsWith("FST4")) dec_data.params.nexp_decode += 256*(ui->sbNB->value()+3);
::memcpy(dec_data.params.datetime, m_dateTime.toLatin1()+" ", sizeof dec_data.params.datetime); ::memcpy(dec_data.params.datetime, m_dateTime.toLatin1()+" ", sizeof dec_data.params.datetime);
::memcpy(dec_data.params.mycall, (m_config.my_callsign()+" ").toLatin1(), sizeof dec_data.params.mycall); ::memcpy(dec_data.params.mycall, (m_config.my_callsign()+" ").toLatin1(), sizeof dec_data.params.mycall);

View File

@ -2471,7 +2471,7 @@ Yellow when too low</string>
<string>NB </string> <string>NB </string>
</property> </property>
<property name="minimum"> <property name="minimum">
<number>-2</number> <number>-3</number>
</property> </property>
<property name="maximum"> <property name="maximum">
<number>25</number> <number>25</number>