Camera Information System
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

33 lines
803 B

namespace Cis.Application.Core.Component.MarkSeacher;
public class DaHuaMarkSearcher : MarkSearcherBase
{
public DaHuaMarkSearcher(CameraCalcParams cameraCalcParams) : base(cameraCalcParams)
{
}
#region Implement
protected override double ConvertPanPosToAngle(double panPos)
{
double ret = (-0.1 * panPos) / 180 * Math.PI;
return ret;
}
protected override double ConvertTiltPosToAngle(double tiltPos, double tiltMinPos = 0)
{
double ret = (0.1 * tiltPos) / 180 * Math.PI;
return ret;
}
protected override double GetZoomTag(double zoomPos)
{
double ret = (double)CameraCalcParams.ZoomVaryExpr.Eval(new()
{
["x"] = zoomPos,
});
return ret;
}
#endregion Implement
}