File tree Expand file tree Collapse file tree 1 file changed +18
-4
lines changed Expand file tree Collapse file tree 1 file changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ enum LoraState
50
50
{
51
51
LORA_OFF = 0 ,
52
52
LORA_NOT_STARTED,
53
+ LORA_TX_SETTLING, // Do not transmit while surveying in to avoid RF cross-talk
53
54
LORA_TX, // Send RTCM over LoRa when it's received from UM980 (share UART0 with prints)
54
55
LORA_RX_DEDICATED, // No USB cable so disconnect from USB
55
56
LORA_RX_SHARED, // USB cable connected so share UART0 between prints and data
@@ -90,11 +91,9 @@ void updateLora()
90
91
if (inBaseMode ())
91
92
{
92
93
if (settings.debugLora == true )
93
- systemPrintln (" LoRa: Moving to TX" );
94
-
95
- loraSetupTransmit ();
94
+ systemPrintln (" LoRa: Moving to TX Settling" );
96
95
97
- loraState = LORA_TX ;
96
+ loraState = LORA_TX_SETTLING ;
98
97
}
99
98
else if (isUsbAttached () == false )
100
99
{
@@ -123,6 +122,21 @@ void updateLora()
123
122
}
124
123
break ;
125
124
125
+ case (LORA_TX_SETTLING):
126
+ // While the survey is running, avoid transmitting over LoRa to allow maximum GNSS reception
127
+
128
+ if (gnssIsSurveyComplete () == true )
129
+ {
130
+ if (settings.debugLora == true )
131
+ systemPrintln (" LoRa: Moving to TX" );
132
+
133
+ loraSetupTransmit ();
134
+
135
+ loraState = LORA_TX;
136
+ }
137
+
138
+ break ;
139
+
126
140
case (LORA_TX):
127
141
// Incoming RTCM to send out over LoRa is handled by processUart1Message() task and loraProcessRTCM()
128
142
if (inMainMenu == false )
You can’t perform that action at this time.
0 commit comments