Skip to content

Commit 895882c

Browse files
committed
Add retries to UM980 rover and base starts
1 parent 6c215f9 commit 895882c

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

Firmware/RTK_Everywhere/UM980.ino

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,29 @@ bool um980ConfigureOnce()
223223
}
224224

225225
bool um980ConfigureRover()
226+
{
227+
if (online.gnss == false)
228+
{
229+
systemPrintln("GNSS not online");
230+
return (false);
231+
}
232+
233+
for (int x = 0; x < 3; x++)
234+
{
235+
if (um980ConfigureRoverOnce() == true)
236+
return (true);
237+
238+
// If we fail, reset UM980
239+
systemPrintln("Resetting UM980 to complete rover configuration");
240+
241+
um980Reset();
242+
delay(500);
243+
um980Boot();
244+
delay(500);
245+
}
246+
}
247+
248+
bool um980ConfigureRoverOnce()
226249
{
227250
/*
228251
Disable all message traffic
@@ -278,6 +301,29 @@ bool um980ConfigureRover()
278301
}
279302

280303
bool um980ConfigureBase()
304+
{
305+
if (online.gnss == false)
306+
{
307+
systemPrintln("GNSS not online");
308+
return (false);
309+
}
310+
311+
for (int x = 0; x < 3; x++)
312+
{
313+
if (um980ConfigureBaseOnce() == true)
314+
return (true);
315+
316+
// If we fail, reset UM980
317+
systemPrintln("Resetting UM980 to complete base configuration");
318+
319+
um980Reset();
320+
delay(500);
321+
um980Boot();
322+
delay(500);
323+
}
324+
}
325+
326+
bool um980ConfigureBaseOnce()
281327
{
282328
/*
283329
Disable all messages

0 commit comments

Comments
 (0)