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

HFSM Self Transition #936

Open
Chippychap opened this issue Jul 30, 2024 · 0 comments
Open

HFSM Self Transition #936

Chippychap opened this issue Jul 30, 2024 · 0 comments

Comments

@Chippychap
Copy link

#696 introduced ifsm_state::Self_Transition for the FSM implementation, but not for the HFSM implementation.
Expected behavior is to also reactivate (exit, enter) the current state when ifsm_state::Self_Transition is returned by process_event / on_event
Now, this may be a bit more complex as there are also parent state handling to take care of. As what should happen if the parent returns the ifsm_state::Self_Transition variable. Should than the parent be reactivated as well?

Also, but this may need to be a different issue but somewhat related. Returning the STATE_ID from the parent when it processes an event causes some weird transitions as it partially reactivates the states.
For example, in the motor control example if the Running state would accept the SetSpeed event and returns the STATE_ID. It would then reenter the Running state without exiting it first and activate its initial substate WindingUp

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