Big changes

This commit is contained in:
Duc
2025-03-13 12:04:22 -07:00
parent c689fcb7f9
commit ffa9905494
748 changed files with 199255 additions and 3743 deletions

View File

@@ -0,0 +1,225 @@
using Raytheon.Instruments;
using System;
using System.Collections.Generic;
namespace MeasurementManagerLib
{
public class OpticalBenchMeasurementManager
{
private readonly ICommDevice _opticalBench;
/// <summary>
/// constructor that uses instrument manager
/// </summary>
/// <param name="instrumentManager"></param>
/// <param name="instrumentName"></param>
/// <param name="measurementDefFile"></param>
/// <param name="instrumentDefFile"></param>
public OpticalBenchMeasurementManager(IInstrumentManager instrumentManager, string instrumentName, string measurementDefFile, string instrumentDefFile)
{
_opticalBench = instrumentManager.GetInstrument<ICommDevice>(instrumentName);
_opticalBench?.Initialize();
}
public void CloseShutter()
{
try
{
}
catch (Exception)
{
throw;
}
}
public List<string> GetTargetWheelNames()
{
List<string> strs;
try
{
strs = null;
}
catch (Exception)
{
throw;
}
return strs;
}
public void MoveSeekerAbs(double az, double el)
{
try
{
}
catch (Exception)
{
throw;
}
}
public void MoveSeekerAbs(double az, double el, double rl)
{
try
{
}
catch (Exception)
{
throw;
}
}
public void OpenShutter()
{
try
{
}
catch (Exception)
{
throw;
}
}
public void SetBackgroundScene(int scene)
{
try
{
}
catch (Exception)
{
throw;
}
}
public void SetBlackBodySetpointTemperature(double temperature)
{
try
{
}
catch (Exception)
{
throw;
}
}
public void SetChopperFrequency(double frequency)
{
try
{
}
catch (Exception)
{
throw;
}
}
public void SetChopperOff()
{
try
{
}
catch (Exception)
{
throw;
}
}
public void SetChopperOn()
{
try
{
}
catch (Exception)
{
throw;
}
}
public void SetFilterWheel(int filter)
{
try
{
}
catch (Exception)
{
throw;
}
}
public void SetTargetPosition(double az, double el)
{
try
{
}
catch (Exception)
{
throw;
}
}
public void SetTargetSize(double size)
{
try
{
}
catch (Exception)
{
throw;
}
}
public void SetTargetSource(int source)
{
try
{
}
catch (Exception)
{
throw;
}
}
public void SetTargetWheel(string targetName)
{
try
{
}
catch (Exception)
{
throw;
}
}
public void SetFocus(double position)
{
try
{
}
catch (Exception)
{
throw;
}
}
public void CenterTargetOnPixel(int pixelX, int pixelY, double chopperRate, double minAmp, double maxOE)
{
try
{
}
catch (Exception)
{
throw;
}
}
public void LoadProfile()
{
try
{
}
catch (Exception)
{
throw;
}
}
}
}

View File

@@ -0,0 +1,22 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="$(SolutionDir)Solution.props" />
<PropertyGroup>
<TargetFramework>net472</TargetFramework>
<AssemblyName>OpticalBenchMeasurementManager</AssemblyName>
<Product>Composable Test Software Library</Product>
<Description>Optical Bench Measurement Manager</Description>
<OutputType>Library</OutputType>
<!-- Static versioning (Suitable for Development) -->
<!-- Disable the line below for dynamic versioning -->
<Version>1.1.0</Version>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="NLog" Version="5.0.0" />
<PackageReference Include="Raytheon.Common" Version="1.0.0" />
<PackageReference Include="Raytheon.Instruments.InstrumentManager.Contracts" Version="1.8.0" />
<PackageReference Include="Raytheon.Instruments.CommDevice.Contracts" Version="1.2.0" />
</ItemGroup>
</Project>