GPS: Implement Power Management, Refactor Code and Fix GSA Message Configuration for U-Blox hardware #2606
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In this merge request, I introduce several enhancements and fixes to improve the overall functionality and power efficiency of our GPS module. Here's a summary of the changes made:
Power Management: I have integrated power management support using the UBX-CFG-PMS message. This allows us to configure the GPS module's power consumption according to our needs. For now, it is set to "Aggressive with 1 Hz: The module operates in a power saving mode with a 1 Hz update rate."
Code Refactoring: I've cleaned up and improved the readability of our existing code base. This includes better structuring the code, adding descriptive comments, and optimizing existing functions for better performance.
Fix GSA Message Configuration: I've fixed an issue in the GSA message configuration that was causing unexpected behavior. The correct UBX message format and parameters are now used.
These changes contribute to a more power-efficient, stable, and reliable operation of the GPS module, ensuring optimal functionality while minimizing power consumption. The revised code is also more maintainable and easier to understand. I request the team to review the proposed changes and provide feedback.