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

Add the hexapod events. #926

Closed
wants to merge 1 commit into from
Closed

Add the hexapod events. #926

wants to merge 1 commit into from

Conversation

teweitsai
Copy link
Contributor

@teweitsai teweitsai commented Jan 15, 2025

Add the MTHexapod_logevent_highCurrent and MTHexapod_logevent_transitionToIdle.

Copy link
Member

@tribeiro tribeiro left a comment

Choose a reason for hiding this comment

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

Changes looks good, but I think they are a but redundant.

I think there's really no need for the CSC to publish the highCurrect event, as this could be done by the Watcher and also, my impression is that the driver state is already covered by another event.

In any case, I am approving the PR so, feel free to ignore my comments above.

</SALEvent>
<SALEvent>
<Subsystem>MTHexapod</Subsystem>
<EFDB_Topic>MTHexapod_logevent_transitionToIdle</EFDB_Topic>
Copy link
Member

Choose a reason for hiding this comment

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

Isn't this information already available in the MTHexapod_logevent_controllerState event? Is there really a need to publish just this boolean flag?

Don't want to be picky but I think something like driversIdle for a topic name and idle for attribute would probably be better.

Copy link
Contributor Author

@teweitsai teweitsai Jan 28, 2025

Choose a reason for hiding this comment

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

If we do not have this event, people will need to use the events of MTHexapod_logevent_controllerState and MTHexapod_logevent_summaryState together to judge what happens. A little bit complex but is doable.

@@ -411,4 +411,28 @@
<Count>1</Count>
</item>
</SALEvent>
<SALEvent>
<Subsystem>MTHexapod</Subsystem>
<EFDB_Topic>MTHexapod_logevent_highCurrent</EFDB_Topic>
Copy link
Member

Choose a reason for hiding this comment

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

Are you sure you want to add this to the CSC? why not let the Watcher take care of this?

@teweitsai
Copy link
Contributor Author

The reason to have these two events is to make the implementation of watcher alarms to have very simple logic. But we can remove these two events and put the complexities to the watcher alarms instead as well. Therefore, I will close this PR. Thanks!

@teweitsai teweitsai closed this Jan 28, 2025
@teweitsai teweitsai deleted the tickets/DM-46560 branch January 28, 2025 12:10
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.

2 participants