Add dB signal report support for Q65, FST4, and FST4W digital modes
- Updated setRst() function in footer.php to include Q65, FST4, FST4W modes - Extended getReportByMode() function in simplefle.js to handle dB reports for all digital modes - Ensures consistent signal report handling (-5 dB default) across all WSJT-X compatible modes - Fixes issue where Q65, FST4, FST4W used traditional RST instead of dB reports
这个提交包含在:
父节点
85ffd419ab
当前提交
72d2d84332
共有 2 个文件被更改,包括 12 次插入 和 4 次删除
|
|
@ -1681,7 +1681,7 @@ if ($this->session->userdata('user_id') != null) {
|
||||||
$('#notice-alerts').delay(1000).fadeOut(5000);
|
$('#notice-alerts').delay(1000).fadeOut(5000);
|
||||||
|
|
||||||
function setRst(mode) {
|
function setRst(mode) {
|
||||||
if (mode == 'JT65' || mode == 'JT65B' || mode == 'JT6C' || mode == 'JTMS' || mode == 'ISCAT' || mode == 'MSK144' || mode == 'JTMSK' || mode == 'QRA64' || mode == 'FT8' || mode == 'FT4' || mode == 'JS8' || mode == 'JT9' || mode == 'JT9-1' || mode == 'ROS') {
|
if (mode == 'JT65' || mode == 'JT65B' || mode == 'JT6C' || mode == 'JTMS' || mode == 'ISCAT' || mode == 'MSK144' || mode == 'JTMSK' || mode == 'QRA64' || mode == 'FT8' || mode == 'FT4' || mode == 'JS8' || mode == 'JT9' || mode == 'JT9-1' || mode == 'ROS' || mode == 'Q65' || mode == 'FST4' || mode == 'FST4W') {
|
||||||
$('#rst_sent').val('-5');
|
$('#rst_sent').val('-5');
|
||||||
$('#rst_rcvd').val('-5');
|
$('#rst_rcvd').val('-5');
|
||||||
} else if (mode == 'FSK441' || mode == 'JT6M') {
|
} else if (mode == 'FSK441' || mode == 'JT6M') {
|
||||||
|
|
|
||||||
|
|
@ -174,14 +174,13 @@ function handleInput() {
|
||||||
/^[A-Z0-9]{1,3}\/[A-Z]{2}-\d{3}|[AENOS]*[FNSUACA]-\d{3}|(?!.*FF)[A-Z0-9]{1,3}-\d{4,5}|[A-Z0-9]{1,3}[F]{2}-\d{4}$/i
|
/^[A-Z0-9]{1,3}\/[A-Z]{2}-\d{3}|[AENOS]*[FNSUACA]-\d{3}|(?!.*FF)[A-Z0-9]{1,3}-\d{4,5}|[A-Z0-9]{1,3}[F]{2}-\d{4}$/i
|
||||||
)
|
)
|
||||||
) {
|
) {
|
||||||
sotaWwff = item.toUpperCase();
|
sotaWwff = item.toUpperCase(); } else if (
|
||||||
} else if (
|
|
||||||
item.match(
|
item.match(
|
||||||
/([a-zA-Z0-9]{1,3}[0-9][a-zA-Z0-9]{0,3}[a-zA-Z])|.*\/([a-zA-Z0-9]{1,3}[0-9][a-zA-Z0-9]{0,3}[a-zA-Z])|([a-zA-Z0-9]{1,3}[0-9][a-zA-Z0-9]{0,3}[a-zA-Z])\/.*/
|
/([a-zA-Z0-9]{1,3}[0-9][a-zA-Z0-9]{0,3}[a-zA-Z])|.*\/([a-zA-Z0-9]{1,3}[0-9][a-zA-Z0-9]{0,3}[a-zA-Z])|([a-zA-Z0-9]{1,3}[0-9][a-zA-Z0-9]{0,3}[a-zA-Z])\/.*/
|
||||||
)
|
)
|
||||||
) {
|
) {
|
||||||
callsign = item.toUpperCase();
|
callsign = item.toUpperCase();
|
||||||
} else if (itemNumber > 0 && item.match(/^\d{1,3}$/)) {
|
} else if (itemNumber > 0 && (item.match(/^\d{1,3}$/) || item.match(/^[+-]\d{1,2}$/))) {
|
||||||
if (rst_s === null) {
|
if (rst_s === null) {
|
||||||
rst_s = item;
|
rst_s = item;
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -566,6 +565,15 @@ function getReportByMode(rst, mode) {
|
||||||
|
|
||||||
return "599";
|
return "599";
|
||||||
}
|
}
|
||||||
|
// Handle digital modes with dB signal reports (e.g., -09, +00)
|
||||||
|
if ((mode.toUpperCase() === "FT8" || mode.toUpperCase() === "FT4" || mode.toUpperCase() === "JS8" ||
|
||||||
|
mode.toUpperCase() === "JT65" || mode.toUpperCase() === "JT65B" || mode.toUpperCase() === "JT6C" ||
|
||||||
|
mode.toUpperCase() === "JTMS" || mode.toUpperCase() === "ISCAT" || mode.toUpperCase() === "MSK144" ||
|
||||||
|
mode.toUpperCase() === "JTMSK" || mode.toUpperCase() === "QRA64" || mode.toUpperCase() === "JT9" ||
|
||||||
|
mode.toUpperCase() === "JT9-1" || mode.toUpperCase() === "ROS" || mode.toUpperCase() === "Q65" ||
|
||||||
|
mode.toUpperCase() === "FST4" || mode.toUpperCase() === "FST4W") && rst.match(/^[+-]\d{1,2}$/)) {
|
||||||
|
return rst;
|
||||||
|
}
|
||||||
|
|
||||||
if (settingsMode === "SSB") {
|
if (settingsMode === "SSB") {
|
||||||
if (rst.length === 1) {
|
if (rst.length === 1) {
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用