diff --git a/Azaion.Common/Services/GPSMatcherService.cs b/Azaion.Common/Services/GPSMatcherService.cs index c091ef9..bc442ad 100644 --- a/Azaion.Common/Services/GPSMatcherService.cs +++ b/Azaion.Common/Services/GPSMatcherService.cs @@ -24,7 +24,7 @@ public class GpsMatcherService(IGpsMatcherClient gpsMatcherClient, private readonly DirectoriesConfig _dirConfig = dirConfig.Value; private const int ZOOM_LEVEL = 18; private const int POINTS_COUNT = 10; - private const int DISTANCE_BETWEEN_POINTS_M = 100; + private const int DISTANCE_BETWEEN_POINTS_M = 120; private const double SATELLITE_RADIUS_M = DISTANCE_BETWEEN_POINTS_M * (POINTS_COUNT + 1); private const int MAX_AVG_POINTS = 2; diff --git a/Azaion.Common/Services/GpsMatcherClient.cs b/Azaion.Common/Services/GpsMatcherClient.cs index 2d4e1f1..05ca065 100644 --- a/Azaion.Common/Services/GpsMatcherClient.cs +++ b/Azaion.Common/Services/GpsMatcherClient.cs @@ -50,6 +50,7 @@ public class GpsMatcherClient : IGpsMatcherClient process.StartInfo = new ProcessStartInfo { FileName = SecurityConstants.ExternalGpsDeniedPath, + Arguments = $"zeromq --rep {gpsConfig.Value.ZeroMqPort} --pub {gpsConfig.Value.ZeroMqReceiverPort}", WorkingDirectory = SecurityConstants.EXTERNAL_GPS_DENIED_FOLDER, CreateNoWindow = true }; diff --git a/Azaion.Suite/config.json b/Azaion.Suite/config.json index 16000cc..748dbb9 100644 --- a/Azaion.Suite/config.json +++ b/Azaion.Suite/config.json @@ -11,8 +11,8 @@ }, "GpsDeniedClientConfig": { "ZeroMqHost": "127.0.0.1", - "ZeroMqPort": 5555, - "ZeroMqReceiverPort": 5556 + "ZeroMqPort": 5535, + "ZeroMqReceiverPort": 5536 }, "DirectoriesConfig": { "ApiResourcesDirectory": "stage", diff --git a/Azaion.Suite/config.system.json b/Azaion.Suite/config.system.json index 0bb9b2d..aa45128 100644 --- a/Azaion.Suite/config.system.json +++ b/Azaion.Suite/config.system.json @@ -35,7 +35,7 @@ "ModelBatchSize": 4 }, "GpsDeniedConfig": { - "MinKeyPoints": 15 + "MinKeyPoints": 12 }, "ThumbnailConfig": { "Size": "240,135", "Border": 10 } } \ No newline at end of file