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

Access to FSM instance from main.cpp #42

Open
NachoMurillo opened this issue Aug 30, 2024 · 0 comments
Open

Access to FSM instance from main.cpp #42

NachoMurillo opened this issue Aug 30, 2024 · 0 comments

Comments

@NachoMurillo
Copy link

Hello,

How is the best way to access the FSM instance (for example in the elevator project)?

We would like to be able to modify or get state machine values from outside the machine? Is this possible?

In main.cpp, the FSM is initializated like this. Where is the instance or the object? For example, if we may want to update motor direction directly from the main function, how it would be done?

I miss something like:

fsm_object->motor.direction = 1

Thank you for this application and for your response.

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