Skip to content

Commit

Permalink
Give localization mission time to complete
Browse files Browse the repository at this point in the history
  • Loading branch information
oysand committed Jul 1, 2024
1 parent 0122d49 commit af3312a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/api/EventHandlers/MqttEventHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ private async void OnIsarStatus(object? sender, MqttReceivedArgs mqttArgs)

if (robot.Status == isarStatus.Status) { return; }

if (await MissionRunService.OngoingLocalizationMissionRunExists(robot.Id)) Thread.Sleep(5000); // Give localization mission update time to complete

var preUpdatedRobot = await RobotService.ReadByIsarId(isarStatus.IsarId);
if (preUpdatedRobot == null)
{
Expand Down

0 comments on commit af3312a

Please sign in to comment.