You've already forked TEF6686_ESP32
Increased sensitivity for extended BW
This commit is contained in:
@@ -127,6 +127,7 @@ bool screenmute;
|
|||||||
bool screensavertriggered = false;
|
bool screensavertriggered = false;
|
||||||
bool seek;
|
bool seek;
|
||||||
bool seekinit;
|
bool seekinit;
|
||||||
|
bool setextendbw;
|
||||||
bool setupmode;
|
bool setupmode;
|
||||||
bool showclock;
|
bool showclock;
|
||||||
bool showlongps;
|
bool showlongps;
|
||||||
@@ -3384,6 +3385,21 @@ void ShowSignalLevel() {
|
|||||||
SStatusold = SStatusprint;
|
SStatusold = SStatusprint;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!seek) {
|
||||||
|
if (tuned && CN > 15 && SStatus > 300) {
|
||||||
|
if (!setextendbw) {
|
||||||
|
setextendbw = true;
|
||||||
|
radio.extendBW(true);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if (setextendbw) {
|
||||||
|
setextendbw = false;
|
||||||
|
radio.extendBW(false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (wifi && millis() >= udptimer + 2000) {
|
if (wifi && millis() >= udptimer + 2000) {
|
||||||
udptimer = millis();
|
udptimer = millis();
|
||||||
Udp.beginPacket(remoteip, 9030);
|
Udp.beginPacket(remoteip, 9030);
|
||||||
@@ -3455,7 +3471,6 @@ void ShowOffset() {
|
|||||||
// Right arrow dimmed (◀)
|
// Right arrow dimmed (◀)
|
||||||
tft.fillTriangle(rightArrowBaseX, arrowBaseYTop, centerX + arrowGap, centerY, rightArrowBaseX, arrowBaseYBottom, SignificantColor);
|
tft.fillTriangle(rightArrowBaseX, arrowBaseYTop, centerX + arrowGap, centerY, rightArrowBaseX, arrowBaseYBottom, SignificantColor);
|
||||||
tuned = false;
|
tuned = false;
|
||||||
radio.extendBW(false);
|
|
||||||
} else if (USN < 250 && WAM < 250 && OStatus > -250 && OStatus < 250 && !SQ) {
|
} else if (USN < 250 && WAM < 250 && OStatus > -250 && OStatus < 250 && !SQ) {
|
||||||
// Both arrows dimmed
|
// Both arrows dimmed
|
||||||
tft.fillTriangle(leftArrowBaseX, arrowBaseYTop, centerX - arrowGap, centerY, leftArrowBaseX, arrowBaseYBottom, GreyoutColor);
|
tft.fillTriangle(leftArrowBaseX, arrowBaseYTop, centerX - arrowGap, centerY, leftArrowBaseX, arrowBaseYBottom, GreyoutColor);
|
||||||
@@ -3463,7 +3478,6 @@ void ShowOffset() {
|
|||||||
// Center dot active
|
// Center dot active
|
||||||
tft.fillCircle(centerX, centerY, 3, InsignificantColor);
|
tft.fillCircle(centerX, centerY, 3, InsignificantColor);
|
||||||
tuned = true;
|
tuned = true;
|
||||||
radio.extendBW(true);
|
|
||||||
} else if (OStatus > 250) {
|
} else if (OStatus > 250) {
|
||||||
// Right arrow active (◀)
|
// Right arrow active (◀)
|
||||||
tft.fillTriangle(rightArrowBaseX, arrowBaseYTop, centerX + arrowGap, centerY, rightArrowBaseX, arrowBaseYBottom, GreyoutColor);
|
tft.fillTriangle(rightArrowBaseX, arrowBaseYTop, centerX + arrowGap, centerY, rightArrowBaseX, arrowBaseYBottom, GreyoutColor);
|
||||||
@@ -3472,14 +3486,12 @@ void ShowOffset() {
|
|||||||
// Left arrow dimmed (▶)
|
// Left arrow dimmed (▶)
|
||||||
tft.fillTriangle(leftArrowBaseX, arrowBaseYTop, centerX - arrowGap, centerY, leftArrowBaseX, arrowBaseYBottom, SignificantColor);
|
tft.fillTriangle(leftArrowBaseX, arrowBaseYTop, centerX - arrowGap, centerY, leftArrowBaseX, arrowBaseYBottom, SignificantColor);
|
||||||
tuned = false;
|
tuned = false;
|
||||||
radio.extendBW(false);
|
|
||||||
} else {
|
} else {
|
||||||
// Everything dimmed
|
// Everything dimmed
|
||||||
tft.fillTriangle(leftArrowBaseX, arrowBaseYTop, centerX - arrowGap, centerY, leftArrowBaseX, arrowBaseYBottom, GreyoutColor);
|
tft.fillTriangle(leftArrowBaseX, arrowBaseYTop, centerX - arrowGap, centerY, leftArrowBaseX, arrowBaseYBottom, GreyoutColor);
|
||||||
tft.fillTriangle(rightArrowBaseX, arrowBaseYTop, centerX + arrowGap, centerY, rightArrowBaseX, arrowBaseYBottom, GreyoutColor);
|
tft.fillTriangle(rightArrowBaseX, arrowBaseYTop, centerX + arrowGap, centerY, rightArrowBaseX, arrowBaseYBottom, GreyoutColor);
|
||||||
tft.fillCircle(centerX, centerY, 3, GreyoutColor);
|
tft.fillCircle(centerX, centerY, 3, GreyoutColor);
|
||||||
tuned = false;
|
tuned = false;
|
||||||
radio.extendBW(false);
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (OStatus < -2) {
|
if (OStatus < -2) {
|
||||||
|
|||||||
Reference in New Issue
Block a user