2.7 pocket fix#528
Conversation
This test verifies the current behavior; this is not the same as correct behavior. Signed-off-by: Sebastian Kuzminsky <seb@highlab.com>
Signed-off-by: Sebastian Kuzminsky <seb@highlab.com>
Signed-off-by: Sebastian Kuzminsky <seb@highlab.com>
Signed-off-by: Sebastian Kuzminsky <seb@highlab.com>
Signed-off-by: Sebastian Kuzminsky <seb@highlab.com>
according to docs they are the same, but on startup their initial value is different. This way they are always the same, like it says in the docs.
removed legacy tooltable file syntax, added pocketno to tooltable struct so non-random changers can report the correct pocket number in the future, to fix #500 Signed-off-by: Rene Hopf <renehopf@mac.com>
Signed-off-by: Rene Hopf <renehopf@mac.com>
Signed-off-by: Rene Hopf <renehopf@mac.com>
…alue, as expected and documented Signed-off-by: Rene Hopf <renehopf@mac.com>
…same, correct pocket number. Signed-off-by: Rene Hopf <renehopf@mac.com>
|
This is awesome! Rene, hazzy and I are excited to use your table in the new gui project! You should stop by the qtpyvcp irc and check us out! |
|
this is not the new tooltable, thats next, after another cleanup... this only fixes interp and remaps getting the wrong pocket number, and to have a set of tests that represent the expected behavior. |
|
looks like the remap is still broken, there is no test for them. I will add a workaround for that. but the interp variables are ok, just use them in the m6 remap. |
|
I got another bug reported: on prepare, the pocket numbers are delayed by one in the remap. No idea why the tests didnt catch that... |
|
Ah gotcha! well I am glad to see you are back at it again! Hazzy and Turboos and myself are VERY excited bever the less for the new tool teable when you have time for it and are eager to be able to implement it into the new gui for the ATC functionality which we are struggling with due to the old tool table. Between Your Efforts on the new tool table and Hazzy's and Turboss's efforts on the QtPyVCP, LCNC is on its way to a really awesome place! so at least from me and I know Hazzy and Turboss, a VERY BIG THANK YOU!!!! |
|
@rene-dev : hi, does this make any sense |
|
Hi Guys, Now when I issue Mx Tx command it returns correct pocket values in both iocontrol and remap :-) (at least for me). I have not done any intensive tests so I am not sure if this change has any side effects.
I will be appriciate if somebody could doublecheck that and commit if it is ok. |
|
Dont do that, it has very bad side effects. I think I have a fix for it. |
rename SELECT_POCKET to SELECT_TOOL iocontrol now gets the pocket number of the selected tool from the tooltable. Signed-off-by: Rene Hopf <renehopf@mac.com>
Turboss and I are at the last obstacle of the atc portion of our gui project (for now) and it is dealing with the Interp and Turboss has some questions on it and we were hoping perhaps you could enlighten us so we could complete this leg of the project. Turboss's question: "rene-dev: how can we use the bundled boost python interpreter from within systems python? I would like to read parameters" we are in the QtPyVCP IRQ on matrix where we collaborate, if you have a spare moment and could maybe nudge us in the right direction we would be grateful! Thanks Rene! Chris |
call find_tool_pocket if the pocket number is required, and only use find_tool index where the index is required. Signed-off-by: Rene Hopf <renehopf@mac.com>
|
It should all work now, even remaps now get the correct pocket number. the interp variables are not correct if you remap T. This is expected, as they are set by the internal T call, which is not executed if you have a remap. They are however updated by the sync, therefore they are delayed by one cycle. This has nothing to do with this fix, its just how remaps work. Im still looking for a nice way of fixing this. |
|
As you mentioned the T-remap does not work as it should, but remaping only M6 all is good. Very good job rene-dev, thank you. Norbert |
|
Hi Rene, I think in interp_convert.cc in line 5256 is an issue, the variable pocket (little misleading) contains the tool table index, but not the actual pocket. Instead, the find_tool_pocket(...) should be used to find the real pocket for the given tool and this should be assigned to settings->selected_pocket. Can you confirm? Regards, |
|
T0M6 and M61Q0 are broken: pocket from the previous tool is kept, not updated to pocket 0. |
|
This is now in 2.8 and in master. |
this fixes #400 and #239
It also works on master, but we agreed that it should go in 2.7 as well.