By MDI mode I mean the linuxcnc task_mode would be set back to
linuxcnc.MANUAL,
not the UI . But, yes, if Gmoccapy changes displays based on the task_mode
that would
need to be changed if something like what I propose were to be implemented.

So that makes me wonder, does the Gmoccapy display switch between the MDI
and MANUAL
tabs when using something like probe_screen?

On Mon, Dec 4, 2017 at 2:52 PM, Rod Webster <r...@vehiclemods.net.au> wrote:

> "I can't think
> of any time where there is a need for LCNC to remain in MDI mode after
> issuing an MDI."
>
> In Gmoccapy, switching modes changes the tab displayed even if the mode
> change is done from external hardware as I do. What Kurt proposes might
> leave users feeling a bit dizzy as I think after every MDI command, it
> would swap back to the jog tab.
>
> Rod Webster
> +61 435 765 611
> Vehicle Modifications Network
> www.vehiclemods.net.au
>
>
> On 5 December 2017 at 05:27, Kurt Jacobson <kurtcjacob...@gmail.com>
> wrote:
>
> > Any UI that wants to work well with wheel jogging has to find some way of
> > setting the task_mode
> > back to manual after each MDI command, and as we have seen that is not
> > trivial to do without
> > breaking external programs that issue MDI commands. In fact, I do not
> think
> > it is an overstatement
> > to say that so far *nobody* has managed to make both wheel jogging and
> > external  MDI commands
> > work satisfactorily at the same time.
> >
> > Since all UIs suffer from this problem, it seem like instead of each UI
> > using some kind of work
> > around, this problem might should be solved at a lower level.
> >
> > I have no idea what MDI mode actually does internally, but from a
> practical
> > user perspective, I can't think
> > of any time were there is a need for LCNC to remain in MDI mode after
> > issuing an MDI.
> >
> > As far as I can tell most UIs that work well with wheel jogging employ
> > something like the following pseudo code:
> >
> > def issue_mdi(cmd):
> >     set_mode(MDI)
> >     issue_mdi(cmd)
> >     set_mode(MANUAL)
> >
> > while(True):
> >     if not mode_manual and is_idle:
> >          set_mode(MANUAL)
> >
> > So basically the UI ensures that LCNC is not in MDI mode unless it it
> > actively issuing an MDI command, which
> > essentially is the same thing as not having an MDI mode at all (from the
> > users perspective). So what if instead
> > of making each UI have to handle switching back to manual mode this is
> done
> > elsewhere. For example `command.mdi()`
> > could switch LCNC to mdi mode, issues the command, and then switched back
> > to manual.
> >
> > It seems like something like this would make life simpler for the UIs ...
> >
> > Cheers,
> > Kurt
> >
> >
> > On Mon, Dec 4, 2017 at 11:43 AM, Kurt Jacobson <kurtcjacob...@gmail.com>
> > wrote:
> >
> > > On Mon, Dec 4, 2017 at 10:54 AM, Rene Hopf <reneh...@mac.com> wrote:
> > >
> > >>
> > >> > On 4. Dec 2017, at 16:14, Les Newell <les.new...@fastmail.co.uk>
> > wrote:
> > >> >
> > >> > This is master as of a couple of months ago. I'd rather not install
> > the
> > >> patch because I want it to switch back to manual after MDI.
> > >>
> > >> the patch should still allow you to do that. thats why I asked you to
> > >> test.
> > >>
> > >
> > > I am afraid not. Dewey's branch does not switch back to manual after an
> > > MDI, at least in my tests.
> > >
> > >
> > ------------------------------------------------------------
> > ------------------
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > _______________________________________________
> > Emc-developers mailing list
> > Emc-developers@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/emc-developers
> >
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Emc-developers mailing list
> Emc-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-developers
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to