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

            LogInfo("Loaded Form");

            yield return(EnumerateJoysticks());

            yield return(SubscribeToJoystick());
        }
        /// <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);
        }
Exemple #4
0
 public OnQueryFrame(DriveControl form)
     : base(form)
 {
 }
Exemple #5
0
 public OnDisconnectWebCam(DriveControl form)
     : base(form)
 {
 }
Exemple #6
0
 public OnConnectWebCam(DriveControl form, string service)
     : base(form, service)
 {
 }
Exemple #7
0
 public OnLogSetting(DriveControl form, bool log, string file)
     : base(form)
 {
     _log  = log;
     _file = file;
 }
Exemple #8
0
 public OnDisconnectSickLRF(DriveControl form)
     : base(form)
 {
 }
Exemple #9
0
 public OnApplyJointParameters(DriveControl form, int angle, string name)
     : base(form)
 {
     _angle     = angle;
     _jointName = name;
 }
Exemple #10
0
 public OnLoad(DriveControl form)
     : base(form)
 {
 }
        /// <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);
        }
Exemple #12
0
 public OnClosed(DriveControl form)
     : base(form)
 {
 }
Exemple #13
0
 public OnChangeJoystick(DriveControl form)
     : base(form)
 {
 }
Exemple #14
0
 public OnStartService(DriveControl form, string contract)
     : base(form)
 {
     _contract = contract;
 }
Exemple #15
0
 public OnConnectSimulatedArm(DriveControl form, string service)
     : base(form, service)
 {
 }
Exemple #16
0
 public OnConnectSickLRF(DriveControl form, string service)
     : base(form, service)
 {
 }
Exemple #17
0
 public OnConnectMotor(DriveControl form, string service)
     : base(form, service)
 {
 }
Exemple #18
0
 public OnConnect(DriveControl form, string service)
     : base(form)
 {
     _service = service;
 }
        IEnumerator<ITask> OnLoadHandler(OnLoad onLoad)
        {
            _driveControl = onLoad.DriveControl;

            LogInfo("Loaded Form");

            yield return EnumerateJoysticks();

            yield return SubscribeToJoystick();
        }
Exemple #20
0
 public OnEStop(DriveControl form)
     : base(form)
 {
 }
Exemple #21
0
 public OnSynchronizeArms(DriveControl form)
     : base(form)
 {
 }
Exemple #22
0
 public DriveControlEvent(DriveControl driveControl)
 {
     _driveControl = driveControl;
 }