Skip to content

modules: location: use SMF#147

Closed
DematteisGiacomo wants to merge 1 commit intomainfrom
location_use_smf
Closed

modules: location: use SMF#147
DematteisGiacomo wants to merge 1 commit intomainfrom
location_use_smf

Conversation

@DematteisGiacomo
Copy link
Copy Markdown
Collaborator

Add SMF state machine to location module.

Copy link
Copy Markdown
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Core Changes

  • The main purpose of this PR is to integrate a State Machine Framework (SMF) into the location module of the asset tracking application. This involves defining a state machine with a single state (STATE_RUNNING) and modifying the existing logic to work within this state machine framework.
  • The gnss_initialized flag is now part of a location_state structure, which is managed by the state machine.
  • The location_module_thread function has been refactored to initialize and run the state machine, replacing the previous logic that directly handled channel messages.

⚠️ Concerns

  • No major concerns identified. The changes appear to be a straightforward refactoring to use the SMF, which should enhance the maintainability and scalability of the module.
  1. Verdict:
    • Approve: The changes are well-structured and align with the goal of integrating a state machine for better state management within the location module.

Code review performed by OPENAI - gpt-4o.

Add SMF state machine to location module.

Signed-off-by: Giacomo Dematteis <giacomo.dematteis@nordicsemi.no>
@sonarqubecloud
Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant