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

Added HFSM-specific start() and reset() #672

Conversation

ockeydockey
Copy link
Contributor

The FSM implementation of start() method only performs the first 'enter' if call_on_enter_state is set to true. This can be problematic in the HFSM since the initial state might be hierarchal. The same goes for reset() when the call_on_exit_state parameter is set to true.

This new implementation will service the 'enter' event for all states within the initial state's hierarchy (starting with the outermost parent state first and working all the way into the initial child state).

@jwellbelove jwellbelove changed the base branch from master to pull-request/#672-Added-HFSM-specific-start()-and-reset() February 16, 2023 08:37
@jwellbelove jwellbelove merged commit 055ce0d into ETLCPP:pull-request/#672-Added-HFSM-specific-start()-and-reset() Feb 16, 2023
jwellbelove added a commit that referenced this pull request Feb 20, 2023
@ockeydockey ockeydockey deleted the feature/HFSMStartAndReset branch April 10, 2023 15:13
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