Skip to content

axis: read the program the config opens once the HAL is whole - #4507

Open
grandixximo wants to merge 1 commit into
LinuxCNC:masterfrom
grandixximo:axis-preview-after-postgui
Open

axis: read the program the config opens once the HAL is whole#4507
grandixximo wants to merge 1 commit into
LinuxCNC:masterfrom
grandixximo:axis-preview-after-postgui

Conversation

@grandixximo

Copy link
Copy Markdown
Contributor

AXIS reads the program a config opens with [DISPLAY]OPEN_FILE before it runs [HAL]POSTGUI_HALFILE, so the preview is taken while everything the postgui file connects is still at its default.

The interpreter reads HAL while it previews, so this matters wherever a postgui file sets limits, pivots, offsets, or the parameters of a kinematics module whose geometry lives in HAL: the preview is of a machine that is not the one the program runs on. The nutating head sims in configs/sim/axis/vismach/5axis/table-rotary_spindle-rotary-nutating take their nutation angle and pivot lengths from panel sliders, and are previewed with all of it at zero.

This reads the program after the postgui file has run, in the same step that raises the window, so the order the operator sees does not change. The file open and the view setup it feeds move into open_initial_file(), called from both the HAL and the no-HAL startup paths.

gmoccapy, qtdragon and touchy read their startup program before their postgui as well. If this is accepted I will follow with the same change for them.

The interpreter reads HAL pins to preview a program, the parameters of a
kinematics module whose geometry lives in HAL among them, and a postgui
file connects those after the panels that carry them exist.  The program
a config opens is read before that, so a machine whose geometry comes
from a panel is previewed with the geometry all zeros.

Read the program after the postgui file has run instead, in the same
step that raises the window.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant