Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save martijnberger/0cccfd2025088ef4af5319024245c9e2 to your computer and use it in GitHub Desktop.
Save martijnberger/0cccfd2025088ef4af5319024245c9e2 to your computer and use it in GitHub Desktop.
commit 2af90f1ab6dc6ef8079bfec80c616cb408db6acf
Author: Martijn Berger <[email protected]>
Date: Wed Jun 2 17:18:30 2021 +0200
Add special FC110 based 2 camera experimental unit
diff --git a/src/Hudl.AutomaticCapture/Utility/InstallationModelUtility.cs b/src/Hudl.AutomaticCapture/Utility/InstallationModelUtility.cs
index 048ab43b9..7d9aa263f 100644
--- a/src/Hudl.AutomaticCapture/Utility/InstallationModelUtility.cs
+++ b/src/Hudl.AutomaticCapture/Utility/InstallationModelUtility.cs
@@ -160,6 +160,7 @@ namespace Hudl.AutomaticCapture.Utility
{ FC111Model.InstallationModelId, FC111Model.ToDto() },
{ FC112Model.InstallationModelId, FC112Model.ToDto() },
{ FC112CropModel.InstallationModelId, FC112CropModel.ToDto() },
+ { FC114Model.InstallationModelId, FC114Model.ToDto() },
{ FC121Model.InstallationModelId, FC121Model.ToDto() },
{ FC122Model.InstallationModelId, FC122Model.ToDto() },
{ FC202Model.InstallationModelId, FC202Model.ToDto() },
diff --git a/src/Hudl.AutomaticCapture/Utility/InstallationModels/FC114Model.cs b/src/Hudl.AutomaticCapture/Utility/InstallationModels/FC114Model.cs
new file mode 100644
index 000000000..e75ec9d90
--- /dev/null
+++ b/src/Hudl.AutomaticCapture/Utility/InstallationModels/FC114Model.cs
@@ -0,0 +1,61 @@
+using System.Collections.Generic;
+using Hudl.AutomaticCapture.Client.Dto;
+using Hudl.AutomaticCapture.Client.Enum;
+
+namespace Hudl.AutomaticCapture.Utility.InstallationModels
+{
+ public static class FC114Model
+ {
+ public static string InstallationModelId => "60b79fe5698c305a40ccac74";
+
+ public static InstallationModelDto ToDto() =>
+ new InstallationModelDto
+ {
+ InstallationModelId = InstallationModelId,
+ ProviderType = InstallationProviderType.Hudl,
+ Name = "FC114.0.0",
+ //HardwarePackageId = "PKG-FOCUS-FC300-S402-012021",
+ Description = "The outdoor, 2 camera, merge board board Focus unit installed between 5 - XX ft",
+ Series = InstallationModelConstants.Series110,
+ HardwareType = InstallationModelConstants.HardwareType7,
+ Lens = InstallationModelConstants.Evetar3297Lens,
+ Sensor = InstallationModelConstants.IMX377Sensor,
+ DefaultCameras = new List<CameraDto>
+ {
+ new CameraDto
+ {
+ Name = "Left Camera",
+ Position = 0,
+ },
+ new CameraDto
+ {
+ Name = "Right Camera",
+ Position = 1,
+ },
+ },
+ ColorPresets = InstallationModelConstants.IMX377OutdoorColorPresets,
+ DefaultVirtcamConfiguration = new VirtcamSettingsDto
+ {
+ CameraSettings = new Dictionary<string, VirtcamInputCameraSettingsDto>
+ {
+ { "image0", new VirtcamInputCameraSettingsDto
+ {
+ PositionVector = new List<float> { -0.04f, -37.79f, 6.4008f },
+ CenterVector = new List<float> { -0.7071f, 0.6184f, -0.3428f },
+ UpVector = new List<float> { 0.0f, 0.4848f, 0.8746f },
+ FocalLength = 3.19f,
+ }
+ },
+ { "image1", new VirtcamInputCameraSettingsDto
+ {
+ PositionVector = new List<float> { 0.04f, -37.79f, 6.4008f },
+ CenterVector = new List<float> { 0.7071f, 0.6184f, -0.3428f },
+ UpVector = new List<float> { 0.0f, 0.4848f, 0.8746f },
+ FocalLength = 3.19f,
+ }
+ },
+ },
+ },
+ };
+ }
+}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment