You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was wondering how I might pass data into the state machine either during initialization or after it's been initialized.
I seen this question came up before but the author closed it without providing a solution and I can't find it in the examples provided.
The text was updated successfully, but these errors were encountered:
You can as well access the state instance low-level using _state_instance<S>::value, which represents the static instance of state S.
I would not recommend doing this, perhaps a better option would be to have some setMyData event?
I just figured out moments ago. I just made some static variables and functions to access them similar to how direction and getDirection was done in motor.hpp.
I was wondering how I might pass data into the state machine either during initialization or after it's been initialized.
I seen this question came up before but the author closed it without providing a solution and I can't find it in the examples provided.
The text was updated successfully, but these errors were encountered: