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)
        {
            LogInfo("TrackRoamerDashboard:DropHandler()");

            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 #3
0
 public OnDisconnectSickLRF(DriveControl form)
     : base(form)
 {
     //Tracer.Trace("OnDisconnectSickLRF()");
 }
Exemple #4
0
 public OnApplyJointParameters(DriveControl form, int angle, string name)
     : base(form)
 {
     _angle     = angle;
     _jointName = name;
 }
Exemple #5
0
 public OnSynchronizeArms(DriveControl form)
     : base(form)
 {
 }
Exemple #6
0
 public OnEStop(DriveControl form)
     : base(form)
 {
 }
Exemple #7
0
 public OnMove(DriveControl form, int left, int right)
     : base(form)
 {
     _left  = left * 750 / 1250;
     _right = right * 750 / 1250;
 }
Exemple #8
0
 public OnDisconnectWebCam(DriveControl form)
     : base(form)
 {
     //Tracer.Trace("OnDisconnectWebCam()");
 }
Exemple #9
0
 public OnStartService(DriveControl form, string contract)
     : base(form)
 {
     _contract = contract;
 }
Exemple #10
0
 public OnConnectSimulatedArm(DriveControl form, string service)
     : base(form, service)
 {
 }
Exemple #11
0
 public OnConnectSickLRF(DriveControl form, string service)
     : base(form, service)
 {
     //Tracer.Trace("OnConnectSickLRF() service=" + service);
 }
Exemple #12
0
 public OnConnectMotor(DriveControl form, string service)
     : base(form, service)
 {
 }
Exemple #13
0
 public OnConnect(DriveControl form, string service)
     : base(form)
 {
     _service = service;
 }
Exemple #14
0
 public OnLoad(DriveControl form)
     : base(form)
 {
 }
Exemple #15
0
 public DriveControlEvent(DriveControl driveControl)
 {
     _driveControl = driveControl;
 }
Exemple #16
0
 public OnLogSetting(DriveControl form, bool log, string file)
     : base(form)
 {
     _log  = log;
     _file = file;
 }
Exemple #17
0
 public OnConnectWebCam(DriveControl form, string service)
     : base(form, service)
 {
     MessageBox.Show("OnConnectWebCam(... ,\"" + service + "\")");
     //Tracer.Trace("OnConnectWebCam(... ,\"" + service + "\")");
 }
Exemple #18
0
 public OnClosed(DriveControl form)
     : base(form)
 {
 }
Exemple #19
0
 public OnQueryFrame(DriveControl form)
     : base(form)
 {
     //Tracer.Trace("OnQueryFrame()");
 }
Exemple #20
0
 public OnChangeJoystick(DriveControl form)
     : base(form)
 {
 }