Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
ddb56cd
No more fixed_vector(idk why I did that)
Cantonplas Feb 27, 2026
a29f9e4
First version implementing std::tupple
Cantonplas Feb 27, 2026
9b3561f
No more copy constructor bullshit
Cantonplas Feb 27, 2026
8c0e35a
Equal operator fixed, now it compiles
Cantonplas Feb 27, 2026
01bd969
Compiling version, tests to be done
Cantonplas Feb 27, 2026
5e336e5
Okay now we check for duplicates
Cantonplas Feb 27, 2026
e8483e8
Some formating changes
Cantonplas Feb 27, 2026
e23b126
Clanker made me do this so the start and exit functions stop when the…
Cantonplas Feb 27, 2026
0bdb147
Made nesting consteval
Cantonplas Feb 27, 2026
7b11785
Fix short circuit no use on return warning
Cantonplas Feb 27, 2026
3b98352
Added state machine tests
Cantonplas Feb 27, 2026
92d600b
Formating errors fixed
Cantonplas Feb 27, 2026
ca6bdbb
Ok now format errors are fixed
Cantonplas Feb 27, 2026
e445d19
More tests need to be addes
Cantonplas Feb 27, 2026
b9fe9b7
Compile testing added, as well as reduced task array to only allow 16…
Cantonplas Feb 28, 2026
2ee8c6f
Formating errores fixed
Cantonplas Feb 28, 2026
2a051f6
Delete tests for the tests
Cantonplas Feb 28, 2026
83c15ee
Now you cant use state machine without start
Cantonplas Mar 1, 2026
ff30613
Fixed logic for nested machine start
Cantonplas Mar 1, 2026
013627c
Formating error fix
Cantonplas Mar 1, 2026
803656e
clanker commit
Cantonplas Mar 2, 2026
a3c13c0
Now we use a concept for a correct tuple in state machine helper func…
Cantonplas Mar 2, 2026
d445e58
Formating fix
Cantonplas Mar 2, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions Inc/ST-LIB_LOW/StateMachine/HeapStateOrder.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,12 @@ template <class StateMachineType> class HeapStateOrder : public HeapOrder {
}

void process() override {
if (callback != nullptr && state_machine.is_on &&
state_machine.get_current_state_id() == state)
if (callback != nullptr && state_machine.get_current_state_id() == state)
callback();
}

void parse(OrderProtocol* socket, uint8_t* data) override {
if (state_machine.is_on && state_machine.get_current_state_id() == state)
if (state_machine.get_current_state_id() == state)
HeapOrder::parse(data);
}
};
Expand Down
5 changes: 2 additions & 3 deletions Inc/ST-LIB_LOW/StateMachine/StackStateOrder.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,12 @@ class StackStateOrder : public StackOrder<BufferLength, Types...> {
}

void process() override {
if (this->callback != nullptr && state_machine.is_on &&
state_machine.get_current_state_id() == state)
if (this->callback != nullptr && state_machine.get_current_state_id() == state)
this->callback();
}

void parse(OrderProtocol* socket, uint8_t* data) override {
if (state_machine.is_on && state_machine.get_current_state_id() == state)
if (state_machine.get_current_state_id() == state)
StackOrder<BufferLength, Types...>::parse(data);
}
};
Expand Down
Loading