Exemplo n.º 1
0
 public OnConnectBumpers(DriveControl form, string service)
     : base(form, service)
 {
 }
Exemplo n.º 2
0
 public OnQueryFrame(DriveControl form)
     : base(form)
 {
 }
Exemplo n.º 3
0
        IEnumerator<ITask> DropIterator(DsspDefaultDrop drop)
        {
            LogInfo("Starting Drop");

            /*
            // Close the WebCam Form
            if (_cameraForm != null)
            {
                WebCamForm cam = _cameraForm;
                _cameraForm = null;

                WinFormsServicePort.FormInvoke(
                    delegate()
                    {
                        if (!cam.IsDisposed)
                        {
                            cam.Dispose();
                        }
                    }
                );
            }
            */

            // Close the Dashboard Form
            if (_driveControl != null)
            {
                DriveControl drive = _driveControl;
                _driveControl = null;

                WinFormsServicePort.FormInvoke(
                    delegate()
                    {
                        if (!drive.IsDisposed)
                        {
                            drive.Dispose();
                        }
                    }
                );
            }


            if (_laserShutdown != null)
            {
                yield return PerformShutdown(ref _laserShutdown);
            }

            if (_motorShutdown != null)
            {
                yield return PerformShutdown(ref _motorShutdown);
            }

            base.DefaultDropHandler(drop);
        }
Exemplo n.º 4
0
 public OnConnectPanTilt(DriveControl form, string service)
     : base(form, service)
 {
 }
Exemplo n.º 5
0
 public OnConnectVision(DriveControl form, string service)
     : base(form, service)
 {
 }
Exemplo n.º 6
0
 public OnConnectSetting(DriveControl form, string machine, ushort port)
     : base(form)
 {
     _machine = machine;
     _port = port;
 }
Exemplo n.º 7
0
 public OnOptionSettings(DriveControl form, GUIOptions opt)
     : base(form)
 {
     Options = new GUIOptions();
     Options = opt;
 }
Exemplo n.º 8
0
 public OnMove(DriveControl form, int left, int right)
     : base(form)
 {
     // Changes from Ben Axelrod to let the robot run free!
     // Fly my beauty, fly!!!
     _left = left;// *750 / 1250;
     _right = right;// *750 / 1250;
     // End of Ben's changes
 }
Exemplo n.º 9
0
 public OnRotate(DriveControl form, double angle, double power)
     : base(form)
 {
     _angle = angle;
     _power = power;
 }
Exemplo n.º 10
0
 public OnChangeJoystick(DriveControl form)
     : base(form)
 {
 }
Exemplo n.º 11
0
 public OnPTMove(DriveControl form, pxPanTilt.PanTiltOperationRequest.OpType cmd)
     : base(form)
 {
     _ptcommand = cmd; 
 }
Exemplo n.º 12
0
 public OnClosed(DriveControl form)
     : base(form)
 {
 }
Exemplo n.º 13
0
 public OnStartService(DriveControl form, string contract)
     : base(form)
 {
     _contract = contract;
 }
Exemplo n.º 14
0
 public OnConnectSimulatedArm(DriveControl form, string service)
     : base(form, service)
 {
 }
Exemplo n.º 15
0
 public OnDisconnectBumpers(DriveControl form)
     : base(form)
 {
 }
Exemplo n.º 16
0
 public OnTranslate(DriveControl form, double distance, double power)
     : base(form)
 {
     _distance = distance;
     _power = power;
 }
Exemplo n.º 17
0
 public OnLogSetting(DriveControl form, bool log, string file)
     : base(form)
 {
     _log = log;
     _file = file;
 }
Exemplo n.º 18
0
 public OnEStop(DriveControl form)
     : base(form)
 {
 }
Exemplo n.º 19
0
 public OnOptionSettings(DriveControl form)
     : base(form)
 {
     Options = new GUIOptions();
 }
Exemplo n.º 20
0
 public OnSynchronizeArms(DriveControl form)
     : base(form)
 {
 }
Exemplo n.º 21
0
 public OnConnectWebCam(DriveControl form, string service)
     : base(form, service)
 {
 }
Exemplo n.º 22
0
 public OnApplyJointParameters(DriveControl form, int angle, string name)
     : base(form)
 {
     _angle = angle;
     _jointName = name;
 }
Exemplo n.º 23
0
 public OnDisconnectWebCam(DriveControl form)
     : base(form)
 {
 }
Exemplo n.º 24
0
 public OnDisconnectSickLRF(DriveControl form)
     : base(form)
 {
 }
Exemplo n.º 25
0
 public OnDisconnectVision(DriveControl form)
     : base(form)
 {
 }
Exemplo n.º 26
0
 public OnDisconnectSonar(DriveControl form)
     : base(form)
 {
 }
Exemplo n.º 27
0
 void OnSimulLoadedHandler(OnSimulLoaded msg)
 {
     _driveControl = (DriveControl)msg.Object; 
     WinFormsServicePort.FormInvoke( delegate() {_driveControl.SetHeadless(_defaultConfig.Headless); });
 }
Exemplo n.º 28
0
 public OnDisconnectGPS(DriveControl form)
     : base(form)
 {
 }
Exemplo n.º 29
0
        IEnumerator<ITask> OnLoadHandler(OnLoad onLoad)
        {
            _driveControl = onLoad.DriveControl;

            LogInfo("Loaded Form");

            yield return EnumerateJoysticks();

            yield return SubscribeToJoystick();
        }
Exemplo n.º 30
0
 public OnConnectSonar(DriveControl form, string service)
     : base(form, service)
 {
 }