Skip to content

Access to FSM instance from main.cpp #42

@NachoMurillo

Description

@NachoMurillo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions