feat(sensors): add BSEC2 support for BME680 IAQ and improve altitude correction#1361
Open
eelco2k wants to merge 5 commits intomeshcore-dev:devfrom
Open
feat(sensors): add BSEC2 support for BME680 IAQ and improve altitude correction#1361eelco2k wants to merge 5 commits intomeshcore-dev:devfrom
eelco2k wants to merge 5 commits intomeshcore-dev:devfrom
Conversation
…correction - Add BSEC2 library integration for BME680 Indoor Air Quality (IAQ) measurements - Implement geoidal separation for more accurate altitude corrections - Add sensor reading caching to prevent excessive polling of BME680 - Sync advertised location from preferences to sensors for geoid correction fallback - Add board-specific power management support for Heltec V3 - Enable altitude correction even when GPS doesn't have a fix This enhances environment sensor capabilities by providing air quality metrics through the BSEC2 library and improves altitude accuracy using proper geoid height corrections. The fallback location mechanism ensures altitude corrections work reliably regardless of GPS fix status.
Swaps the GPS RX and TX pin definitions to match hardware wiring, and updates the GPS location provider instantiation to include reset, enable, and power control parameters for improved accuracy and hardware control.
fda555b to
c989724
Compare
…tude - Apply geoidal separation correction directly to GPS altitude instead of BME680 barometric altitude - Add satellite count as analog output telemetry for GPS data - Change BME680 sensor telemetry to use dynamic channel assignment (next_available_channel) instead of TELEM_CHANNEL_SELF - Replace generic sensor types with more appropriate telemetry types (addAnalogOutput for gas resistance, addPresence for IAQ accuracy) - Simplify BME680 altitude calculation by removing redundant geoidal correction logic - Streamline debug logging for BME680 sensor readings This change improves logical separation of concerns by applying geoidal correction at the GPS level where location data originates, rather than in barometric altitude calculations. It also makes telemetry channel usage more consistent and semantic.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This enhances environment sensor capabilities by providing air quality metrics through the BSEC2 library and improves altitude accuracy using proper geoid height corrections. The fallback location mechanism ensures altitude corrections work reliably regardless of GPS fix status.