Currently we have two different implementations of the state machine transition, one in a task and one in a function. I think that either approach would work but we just need to choose and formalize it.
Acceptance Criteria
Functionally equivalent code that transitions states as before.
Proposed Solution
This can go two ways:
Keep the state machine task and use the function of queue_state_transition to actually queue something. Remove the extra stuff in that function too and let the stateMachineDirector handle it
Keep everything in that function and remove the stateMachineDirector task. We would still need a way of getting the PDU struct into the file somehow, so we'd either need a new initStateMachine function or some extern magic in this case
Description
Currently we have two different implementations of the state machine transition, one in a task and one in a function. I think that either approach would work but we just need to choose and formalize it.
Acceptance Criteria
Functionally equivalent code that transitions states as before.
Proposed Solution
This can go two ways:
queue_state_transition
to actually queue something. Remove the extra stuff in that function too and let the stateMachineDirector handle itinitStateMachine
function or some extern magic in this caseI think both should work