public void SubscribeHandler(pxPT.Subscribe subscribe) { SubscribeHelper(_submgrPort, subscribe.Body, subscribe.ResponsePort); }
public IEnumerator<ITask> PanTiltOperationHandler(pxPT.PanTiltOperation op) { pxPT.PanTiltOperationRequest req = op.Body; LogInfo("Received request: " + req.OperationType.ToString()); switch (req.OperationType) { case pxPT.PanTiltOperationRequest.OpType.MoveDown: MoveBottom(_state.CamID); break; case pxPT.PanTiltOperationRequest.OpType.MoveLeft: MoveLeft(_state.CamID); break; case pxPT.PanTiltOperationRequest.OpType.MoveRight: MoveRight(_state.CamID); break; case pxPT.PanTiltOperationRequest.OpType.MoveUp: MoveTop(_state.CamID); break; case pxPT.PanTiltOperationRequest.OpType.Reset: MoveHome(_state.CamID); break; } op.ResponsePort.Post(DefaultUpdateResponseType.Instance); yield break; }
public OnPTMove(DriveControl form, pxPanTilt.PanTiltOperationRequest.OpType cmd) : base(form) { _ptcommand = cmd; }