Skip to content

Conversation

@destogl
Copy link
Collaborator

@destogl destogl commented Oct 14, 2025

There is one small bug still in the code to return always the error.

canopen_data.emcy_data.original_emcy.msef[0], canopen_data.emcy_data.original_emcy.msef[1],
canopen_data.emcy_data.original_emcy.msef[2], canopen_data.emcy_data.original_emcy.msef[3],
canopen_data.emcy_data.original_emcy.msef[4]);
return hardware_interface::return_type::ERROR;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it make more sense to avoid returning ERROR in this case, and instead give the system a chance to recover rather than shutting it down?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so just ignore it and continue reading? Sensible probably would be to deactive hardware, which also deactivates controllers that write to it. The reading ones stay. Would this be OK?

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.

3 participants