public void setPreset(string name,int PanSpeed,int TiltSpeed,int ZoomSpeed)
{
if (ptzClient == null)
setPTZClient();
PTZVector pv = new PTZVector();
pv.panTilt = new Vector2D();
pv.zoom = new Vector1D();
pv.panTilt.x = (float)10;
pv.panTilt.y = (float)10;
pv.zoom.x = (float)10;
PTZPreset ps = new PTZPreset();
ps.token = "20";
ps.name = name;
ps.ptzPosition = pv;
PTZSpeed pzs = new PTZSpeed();
pzs.panTilt = new Vector2D();
pzs.zoom = new Vector1D();
pzs.panTilt.x = (float)TiltSpeed;
pzs.panTilt.y = (float)PanSpeed;
pzs.zoom.x = (float)ZoomSpeed;
var setpresetres = new SetPresetResponse();
setpresetres = ptzClient.SetPreset(new SetPresetRequest("Profile_1", name,null));
var presetres = new GetPresetsResponse();
presetres = ptzClient.GetPresets(new GetPresetsRequest("Profile_1"));
}
我为设置预设编写此方法....但我不知道我在哪里设置 PTZSpeed ,PTZVector 的对象
请帮我....