Keep configuration option for heartbeat channelization
This commit is contained in:
parent
19cb0b859d
commit
fd77e5440f
@ -682,6 +682,25 @@ text message.</string>
|
|||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QGroupBox" name="heartbeatGroupBox">
|
||||||
|
<property name="visible">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
<property name="title">
|
||||||
|
<string>Heartbeat (HB)</string>
|
||||||
|
</property>
|
||||||
|
<layout class="QVBoxLayout" name="verticalLayout_211">
|
||||||
|
<item>
|
||||||
|
<widget class="QCheckBox" name="heartbeat_anywhere_check_box">
|
||||||
|
<property name="text">
|
||||||
|
<string>Allow heartbeat transmissions outside of heartbeat sub-channel (500Hz - 1000Hz)</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<spacer name="verticalSpacer_5">
|
<spacer name="verticalSpacer_5">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
@ -696,7 +715,7 @@ text message.</string>
|
|||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QGroupBox" name="heartbeatGroupBox">
|
<widget class="QGroupBox" name="heartbeatGroupBoxOld">
|
||||||
<property name="visible">
|
<property name="visible">
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
@ -704,17 +723,13 @@ text message.</string>
|
|||||||
<string>Heartbeat (HB)</string>
|
<string>Heartbeat (HB)</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_21">
|
<layout class="QVBoxLayout" name="verticalLayout_21">
|
||||||
<item>
|
|
||||||
<widget class="QCheckBox" name="heartbeat_anywhere_check_box">
|
|
||||||
<property name="text">
|
|
||||||
<string>Allow heartbeat transmissions outside of heartbeat sub-channel (500Hz - 1000Hz)</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_15">
|
<layout class="QHBoxLayout" name="horizontalLayout_15">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="ping_label_10">
|
<widget class="QLabel" name="ping_label_10">
|
||||||
|
<property name="visible">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Heartbeat interval:</string>
|
<string>Heartbeat interval:</string>
|
||||||
</property>
|
</property>
|
||||||
@ -722,6 +737,9 @@ text message.</string>
|
|||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QSpinBox" name="heartbeat_spin_box">
|
<widget class="QSpinBox" name="heartbeat_spin_box">
|
||||||
|
<property name="visible">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
<string><html><head/><body><p>Number of minutes between unattended heartbeat transmissions.</p></body></html></string>
|
<string><html><head/><body><p>Number of minutes between unattended heartbeat transmissions.</p></body></html></string>
|
||||||
</property>
|
</property>
|
||||||
|
@ -6627,9 +6627,16 @@ void MainWindow::sendHeartbeat(){
|
|||||||
QString status = ui->activeButton->isChecked() ? "ACTIVE" : "IDLE";
|
QString status = ui->activeButton->isChecked() ? "ACTIVE" : "IDLE";
|
||||||
QString message = QString("%1: HB %2 %3").arg(mycall).arg(status).arg(mygrid).trimmed();
|
QString message = QString("%1: HB %2 %3").arg(mycall).arg(status).arg(mygrid).trimmed();
|
||||||
|
|
||||||
|
/*
|
||||||
addMessageText(message);
|
addMessageText(message);
|
||||||
|
|
||||||
if(m_config.transmit_directed()) toggleTx(true);
|
if(m_config.transmit_directed()) toggleTx(true);
|
||||||
|
*/
|
||||||
|
|
||||||
|
auto f = m_config.heartbeat_anywhere() ? -1 : findFreeFreqOffset(500, 1000, 50);
|
||||||
|
|
||||||
|
enqueueMessage(PriorityLow, message, f, [this](){
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::on_hbMacroButton_toggled(bool checked){
|
void MainWindow::on_hbMacroButton_toggled(bool checked){
|
||||||
@ -9461,7 +9468,7 @@ void MainWindow::processCommandActivity() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// do not queue @ALLCALL replies if auto-reply is not checked or it's a ping reply
|
// do not queue @ALLCALL replies if auto-reply is not checked or it's a ping reply
|
||||||
if(!ui->autoReplyButton->isChecked() && isAllCall && !d.cmd.contains(" HB")){
|
if(!ui->autoReplyButton->isChecked() && isAllCall && !d.cmd.contains(" HB ")){
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -9643,7 +9650,9 @@ void MainWindow::processTxQueue(){
|
|||||||
|
|
||||||
// check to see if this is a high priority message, or if we have autoreply enabled, or if this is a ping and the ping button is enabled
|
// check to see if this is a high priority message, or if we have autoreply enabled, or if this is a ping and the ping button is enabled
|
||||||
if(message.priority >= PriorityHigh ||
|
if(message.priority >= PriorityHigh ||
|
||||||
(ui->autoReplyButton->isChecked())
|
message.message.contains(" HB ") ||
|
||||||
|
message.message.contains(" ACK ") ||
|
||||||
|
ui->autoReplyButton->isChecked()
|
||||||
){
|
){
|
||||||
// then try to set the frequency...
|
// then try to set the frequency...
|
||||||
setFreqOffsetForRestore(f, true);
|
setFreqOffsetForRestore(f, true);
|
||||||
@ -9777,10 +9786,12 @@ void MainWindow::displayBandActivity() {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
if (!hbEnabled && (item.text.contains(": HB") || item.text.contains(" ACK "))){
|
if (!hbEnabled && (item.text.contains(": HB") || item.text.contains(" ACK "))){
|
||||||
// hide heartbeats and acks if we are not currently heartbeating
|
// hide heartbeats and acks if we are not currently heartbeating
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if (item.text.isEmpty()) {
|
if (item.text.isEmpty()) {
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user