-
- Downloads
[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.
Showing
- src/RIGv2/Configs/TARS1Config.h 1 addition, 1 deletionsrc/RIGv2/Configs/TARS1Config.h
- src/RIGv2/StateMachines/TARS1/TARS1.cpp 95 additions, 99 deletionssrc/RIGv2/StateMachines/TARS1/TARS1.cpp
- src/common/Events.h 1 addition, 0 deletionssrc/common/Events.h
- src/common/Topics.h 1 addition, 0 deletionssrc/common/Topics.h
Loading
Please register or sign in to comment