halui.mdi-command-NN pins not showing up
- Aciera
-
- Offline
- Administrator
-
Less
More
- Posts: 4532
- Thank you received: 2016
02 Sep 2025 18:05 #334288
by Aciera
Replied by Aciera on topic halui.mdi-command-NN pins not showing up
We could set the first configured axis as selected:
github.com/LinuxCNC/linuxcnc/blob/master...r_intf/halui.cc#L694
could be changed to:
Seems to work in my testing.
github.com/LinuxCNC/linuxcnc/blob/master...r_intf/halui.cc#L694
could be changed to:
bool first_axis = true;
for (axis_num=0; axis_num < EMCMOT_MAX_AXIS ; axis_num++) {
if ( !(axis_mask & (1 << axis_num)) ) { continue; }
char c = "xyzabcuvw"[axis_num];
retval = hal_pin_bit_newf(HAL_OUT, &(halui_data->axis_is_selected[axis_num]), comp_id, "halui.axis.%c.is-selected", c);
if (retval < 0) return retval;
retval = hal_pin_float_newf(HAL_OUT, &(halui_data->axis_pos_commanded[axis_num]), comp_id, "halui.axis.%c.pos-commanded", c);
if (retval < 0) return retval;
retval = hal_pin_float_newf(HAL_OUT, &(halui_data->axis_pos_feedback[axis_num]), comp_id, "halui.axis.%c.pos-feedback", c);
if (retval < 0) return retval;
retval = hal_pin_float_newf(HAL_OUT, &(halui_data->axis_pos_relative[axis_num]), comp_id, "halui.axis.%c.pos-relative", c);
if (retval < 0) return retval;
if (first_axis) {
// at startup, indicate [0] item is selected:
*halui_data->joint_is_selected[0] = 1;
*halui_data->axis_is_selected[axis_num] = 1;
}
first_axis = false;
}
Seems to work in my testing.
Please Log in or Create an account to join the conversation.
- Aciera
-
- Offline
- Administrator
-
Less
More
- Posts: 4532
- Thank you received: 2016
03 Sep 2025 06:44 #334317
by Aciera
Replied by Aciera on topic halui.mdi-command-NN pins not showing up
The following user(s) said Thank You: tommylight, JT
Please Log in or Create an account to join the conversation.
- andypugh
-
- Offline
- Moderator
-
Less
More
- Posts: 19636
- Thank you received: 4533
03 Sep 2025 09:14 #334328
by andypugh
Replied by andypugh on topic halui.mdi-command-NN pins not showing up
Thanks for the fix.
It's odd that this seems to not have been seen before.
(Or maybe has just been worked around with dummy axes?)
It's odd that this seems to not have been seen before.
(Or maybe has just been worked around with dummy axes?)
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
- xunil
- Offline
- New Member
-
Less
More
- Posts: 16
- Thank you received: 2
04 Sep 2025 19:02 #334429
by xunil
Replied by xunil on topic halui.mdi-command-NN pins not showing up
Seems like that was probably the issue. I can confirm that rearranging the axes to be ZA instead of AZ order didn't fix it. I'll try building from HEAD in the next day or two and post here to confirm that it works.
Thanks for finding that bug and fixing it! This was really holding me up so I really appreciate it.
Thanks for finding that bug and fixing it! This was really holding me up so I really appreciate it.
Please Log in or Create an account to join the conversation.
- xunil
- Offline
- New Member
-
Less
More
- Posts: 16
- Thank you received: 2
09 Sep 2025 00:19 #334663
by xunil
Replied by xunil on topic halui.mdi-command-NN pins not showing up
I'm happy to report that building the 2.9 branch (incorporating the merged PR mentioned above) from the LinuxCNC github solved the problem - the mdi-command-NN pins show up and function as expected. Thanks for the fix!
-Rob
-Rob
Please Log in or Create an account to join the conversation.
- andypugh
-
- Offline
- Moderator
-
Less
More
- Posts: 19636
- Thank you received: 4533
09 Sep 2025 13:11 #334694
by andypugh
Replied by andypugh on topic halui.mdi-command-NN pins not showing up
In that case the fix should be in the just-released 2.9.5 release. (so you probably won't have to build from source again)
Please Log in or Create an account to join the conversation.
Time to create page: 0.116 seconds