halui.mdi-command-NN pins not showing up
- Aciera
-
- Away
- Administrator
-
Less
More
- Posts: 4474
- Thank you received: 2001
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
-
- Away
- Administrator
-
Less
More
- Posts: 4474
- Thank you received: 2001
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
-
- Away
- Moderator
-
Less
More
- Posts: 23513
- Thank you received: 4998
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.
Time to create page: 0.092 seconds