Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

machine_actions.py estop #131

Open
dpslwk opened this issue Dec 5, 2023 · 1 comment
Open

machine_actions.py estop #131

dpslwk opened this issue Dec 5, 2023 · 1 comment

Comments

@dpslwk
Copy link
Contributor

dpslwk commented Dec 5, 2023

_estop_bindOk

widget.setChecked(STAT.estop != linuxcnc.STATE_ESTOP)

I think the above should be

widget.setChecked(STAT.task_state == linuxcnc.STATE_ESTOP)
@dpslwk
Copy link
Contributor Author

dpslwk commented Dec 5, 2023

oh
http://linuxcnc.org/docs/2.9/html/config/python-interface.html

estop
(returns integer) - Returns either STATE_ESTOP or not.

hmm maybe its is_active that should be changed,

// types for EMC_TASK state
enum EMC_TASK_STATE_ENUM {
    EMC_TASK_STATE_ESTOP = 1,
    EMC_TASK_STATE_ESTOP_RESET = 2,
    EMC_TASK_STATE_OFF = 3,
    EMC_TASK_STATE_ON = 4
};

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

No branches or pull requests

1 participant