Skip to content
Snippets Groups Projects
Commit 185bcacb authored by Niccolò Betto's avatar Niccolò Betto
Browse files

[TARS1] Refactor to async-like syntax for a linear implementation

Previosly the TARS1 refueling procedure was implemented as various
explicit switch-case statements, with various events being manually
posted to the event queue, which was somewhat hard to read and reason
about.
This commit introduces 'ASYNC_' macros that allow async-like syntax to
be used for waiting on delayed events, allowing a linear implementation
of the code as if it was synchronous.
If these are proven to be useful and work well, we might consider adding
them to the FSM base class.
parent 00e59d07
Branches
No related tags found
No related merge requests found
Pipeline #10864 passed
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment