Exemplo n.º 1
0
 public OnMove(DriveControl form, int left, int right)
     : base(form)
 {
     //_left = left * 750 / 1250;
     //_right = right * 750 / 1250;
     _left  = left;
     _right = right;
 }
Exemplo n.º 2
0
        IEnumerator <ITask> OnLoadHandler(OnLoad onLoad)
        {
            _driveControl = onLoad.DriveControl;

            LogInfo("Loaded Form");

            yield return(EnumerateJoysticks());

            yield return(SubscribeToJoystick());
        }
Exemplo n.º 3
0
        /// <summary>
        /// Drop Handler shuts down SimpleDashboard
        /// </summary>
        /// <param name="drop"></param>
        void DropHandler(DsspDefaultDrop drop)
        {
            PerformShutdown(ref _laserShutdown);
            PerformShutdown(ref _motorShutdown);
            if (_driveControl != null)
            {
                DriveControl drive = _driveControl;
                _driveControl = null;

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

            base.DefaultDropHandler(drop);
        }
Exemplo n.º 4
0
 public OnQueryFrame(DriveControl form)
     : base(form)
 {
 }
Exemplo n.º 5
0
 public OnDisconnectWebCam(DriveControl form)
     : base(form)
 {
 }
Exemplo n.º 6
0
 public OnConnectWebCam(DriveControl form, string service)
     : base(form, service)
 {
 }
Exemplo n.º 7
0
 public OnLogSetting(DriveControl form, bool log, string file)
     : base(form)
 {
     _log  = log;
     _file = file;
 }
Exemplo n.º 8
0
 public OnDisconnectSickLRF(DriveControl form)
     : base(form)
 {
 }
Exemplo n.º 9
0
 public OnApplyJointParameters(DriveControl form, int angle, string name)
     : base(form)
 {
     _angle     = angle;
     _jointName = name;
 }
Exemplo n.º 10
0
 public OnLoad(DriveControl form)
     : base(form)
 {
 }
Exemplo n.º 11
0
        /// <summary>
        /// Drop Handler shuts down SimpleDashboard
        /// </summary>
        /// <param name="drop"></param>
        void DropHandler(DsspDefaultDrop drop)
        {
            PerformShutdown(ref _laserShutdown);
            PerformShutdown(ref _motorShutdown);
            if (_driveControl != null)
            {
                DriveControl drive = _driveControl;
                _driveControl = null;

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

            base.DefaultDropHandler(drop);
        }
Exemplo n.º 12
0
 public OnClosed(DriveControl form)
     : base(form)
 {
 }
Exemplo n.º 13
0
 public OnChangeJoystick(DriveControl form)
     : base(form)
 {
 }
Exemplo n.º 14
0
 public OnStartService(DriveControl form, string contract)
     : base(form)
 {
     _contract = contract;
 }
Exemplo n.º 15
0
 public OnConnectSimulatedArm(DriveControl form, string service)
     : base(form, service)
 {
 }
Exemplo n.º 16
0
 public OnConnectSickLRF(DriveControl form, string service)
     : base(form, service)
 {
 }
Exemplo n.º 17
0
 public OnConnectMotor(DriveControl form, string service)
     : base(form, service)
 {
 }
Exemplo n.º 18
0
 public OnConnect(DriveControl form, string service)
     : base(form)
 {
     _service = service;
 }
Exemplo n.º 19
0
        IEnumerator<ITask> OnLoadHandler(OnLoad onLoad)
        {
            _driveControl = onLoad.DriveControl;

            LogInfo("Loaded Form");

            yield return EnumerateJoysticks();

            yield return SubscribeToJoystick();
        }
Exemplo n.º 20
0
 public OnEStop(DriveControl form)
     : base(form)
 {
 }
Exemplo n.º 21
0
 public OnSynchronizeArms(DriveControl form)
     : base(form)
 {
 }
Exemplo n.º 22
0
 public DriveControlEvent(DriveControl driveControl)
 {
     _driveControl = driveControl;
 }