Test and some mod about WSPR Calibration
This commit is contained in:
		| @@ -72,6 +72,7 @@ extern void TXSubFreq(unsigned long P2); | ||||
|  | ||||
| extern void startTx(byte txMode, byte isDisplayUpdate); | ||||
| extern void stopTx(void); | ||||
| extern void setTXFilters(unsigned long freq); | ||||
|  | ||||
| extern void SendWSPRManage(void); | ||||
| extern byte WsprMSGCount; | ||||
|   | ||||
| @@ -1023,10 +1023,10 @@ void initSettings(){ | ||||
|  | ||||
|   //original code with modified by kd8cec | ||||
|   if (usbCarrier > 12010000l || usbCarrier < 11990000l) | ||||
|     usbCarrier = 11995000l; | ||||
|     usbCarrier = 11997000l; | ||||
|  | ||||
|   if (cwmCarrier > 12010000l || cwmCarrier < 11990000l) | ||||
|     cwmCarrier = 11995000l; | ||||
|     cwmCarrier = 11997000l; | ||||
|      | ||||
|   if (vfoA > 35000000l || 3500000l > vfoA) { | ||||
|      vfoA = 7150000l; | ||||
| @@ -1111,7 +1111,7 @@ void setup() | ||||
|   //Serial.begin(9600); | ||||
|   lcd.begin(16, 2); | ||||
|   //printLineF(1, F("CECBT v1.05"));  | ||||
|   printLineF(1, F("CE v1.05_W"));  | ||||
|   printLineF(1, F("CE v1.051W"));  | ||||
|  | ||||
|   Init_Cat(38400, SERIAL_8N1); | ||||
|   initMeter(); //not used in this build | ||||
|   | ||||
| @@ -151,8 +151,11 @@ void SendWSPRManage() | ||||
|       { | ||||
|         //printLineF1(F("Transmitting")); | ||||
|         //SEND WSPR | ||||
|         prevFreq = frequency; | ||||
|         frequency = WsprTXFreq; | ||||
|         //If you need to consider the Rit and Sprite modes, uncomment them below. | ||||
|         //remark = To reduce the size of the program | ||||
|         //prevFreq = frequency; | ||||
|         //frequency = WsprTXFreq; | ||||
|         setTXFilters(WsprTXFreq); | ||||
|         startTx(TX_CW, 0); | ||||
|          | ||||
|         //Start WSPR | ||||
| @@ -172,8 +175,8 @@ void SendWSPRManage() | ||||
|         } | ||||
|          | ||||
|         digitalWrite(CW_KEY, 0); | ||||
|         stopTx(); | ||||
|         frequency = prevFreq; | ||||
|         stopTx(); //call setFrequency -> recovery TX Filter | ||||
|         //frequency = prevFreq; | ||||
|          | ||||
|         selectedWsprBandIndex = -1; | ||||
|       }     //end of PTT Check | ||||
|   | ||||
		Reference in New Issue
	
	Block a user