Exemplo n.º 1
0
 public void SubscribeHandler(pxPT.Subscribe subscribe)
 {
     SubscribeHelper(_submgrPort, subscribe.Body, subscribe.ResponsePort);
 }
Exemplo n.º 2
0
        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;
        }
Exemplo n.º 3
0
 public OnPTMove(DriveControl form, pxPanTilt.PanTiltOperationRequest.OpType cmd)
     : base(form)
 {
     _ptcommand = cmd; 
 }