Added support for extended frequency range with XDR-GTK
This commit is contained in:
+3
-3
@@ -771,7 +771,7 @@ void loop() {
|
|||||||
afmethodBold = true;
|
afmethodBold = true;
|
||||||
radio.clearRDS(fullsearchrds);
|
radio.clearRDS(fullsearchrds);
|
||||||
}
|
}
|
||||||
if (XDRGTKUSB || XDRGTKTCP) DataPrint("T" + String(frequency * 10));
|
if (XDRGTKUSB || XDRGTKTCP) DataPrint("T" + String((frequency + ConverterSet * 100) * 10));
|
||||||
store = true;
|
store = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -788,7 +788,7 @@ void loop() {
|
|||||||
afmethodBold = true;
|
afmethodBold = true;
|
||||||
radio.clearRDS(fullsearchrds);
|
radio.clearRDS(fullsearchrds);
|
||||||
}
|
}
|
||||||
if (XDRGTKUSB || XDRGTKTCP) DataPrint("T" + String(frequency * 10));
|
if (XDRGTKUSB || XDRGTKTCP) DataPrint("T" + String((frequency + ConverterSet * 100) * 10));
|
||||||
store = true;
|
store = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -804,7 +804,7 @@ void loop() {
|
|||||||
afmethodBold = true;
|
afmethodBold = true;
|
||||||
radio.clearRDS(fullsearchrds);
|
radio.clearRDS(fullsearchrds);
|
||||||
}
|
}
|
||||||
if (XDRGTKUSB || XDRGTKTCP) DataPrint("T" + String(frequency * 10));
|
if (XDRGTKUSB || XDRGTKTCP) DataPrint("T" + String((frequency + ConverterSet * 100) * 10));
|
||||||
store = true;
|
store = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+4
-2
@@ -341,7 +341,7 @@ void XDRGTKRoutine() {
|
|||||||
SelectBand();
|
SelectBand();
|
||||||
}
|
}
|
||||||
DataPrint("M0\n");
|
DataPrint("M0\n");
|
||||||
DataPrint("T" + String(frequency * 10) + "\n");
|
DataPrint("T" + String((frequency + ConverterSet * 100) * 10) + "\n");
|
||||||
radio.SetFreq(frequency);
|
radio.SetFreq(frequency);
|
||||||
radio.clearRDS(fullsearchrds);
|
radio.clearRDS(fullsearchrds);
|
||||||
RDSstatus = false;
|
RDSstatus = false;
|
||||||
@@ -352,6 +352,7 @@ void XDRGTKRoutine() {
|
|||||||
case 'T':
|
case 'T':
|
||||||
unsigned int freqtemp;
|
unsigned int freqtemp;
|
||||||
freqtemp = atoi(buff + 1);
|
freqtemp = atoi(buff + 1);
|
||||||
|
if (BAND_FM) freqtemp -= ConverterSet * 1000;
|
||||||
if (seek) seek = false;
|
if (seek) seek = false;
|
||||||
if (freqtemp >= LWLowEdgeSet && freqtemp <= LWHighEdgeSet) {
|
if (freqtemp >= LWLowEdgeSet && freqtemp <= LWHighEdgeSet) {
|
||||||
frequency_LW = freqtemp;
|
frequency_LW = freqtemp;
|
||||||
@@ -396,7 +397,8 @@ void XDRGTKRoutine() {
|
|||||||
radio.SetFreq(frequency);
|
radio.SetFreq(frequency);
|
||||||
DataPrint("M0\n");
|
DataPrint("M0\n");
|
||||||
}
|
}
|
||||||
if (band == BAND_FM) DataPrint("T" + String(frequency * 10) + "\n"); else DataPrint("T" + String(frequency_AM) + "\n");
|
if (band == BAND_FM) DataPrint("T" + String((frequency + ConverterSet * 100) * 10) + "\n"); else DataPrint("T" + String(frequency_AM) + "\n");
|
||||||
|
|
||||||
ShowFreq(0);
|
ShowFreq(0);
|
||||||
radio.clearRDS(fullsearchrds);
|
radio.clearRDS(fullsearchrds);
|
||||||
RDSstatus = false;
|
RDSstatus = false;
|
||||||
|
|||||||
@@ -82,6 +82,7 @@ extern uint16_t USN;
|
|||||||
extern uint16_t WAM;
|
extern uint16_t WAM;
|
||||||
extern uint8_t buff_pos;
|
extern uint8_t buff_pos;
|
||||||
extern int8_t CN;
|
extern int8_t CN;
|
||||||
|
extern unsigned int ConverterSet;
|
||||||
extern unsigned int freq_scan;
|
extern unsigned int freq_scan;
|
||||||
extern unsigned int frequency;
|
extern unsigned int frequency;
|
||||||
extern unsigned int frequency_OIRT;
|
extern unsigned int frequency_OIRT;
|
||||||
|
|||||||
Reference in New Issue
Block a user