production: Refactor air quality alarms

This CL move the threshold and alarm handling code to StateManager,
allowing the air sensor to simply deal with reporting air quality
scores. This reduces the number of events sent to PubSub.

Change-Id: Ia5b0ecbf6d34be1c241e00abf2851624191782f6
Reviewed-on: https://pigweed-internal-review.git.corp.google.com/c/pigweed/showcase/rp2/+/73158
Commit-Queue: Aaron Green <aarongreen@google.com>
Reviewed-by: Wyatt Hepler <hepler@google.com>
13 files changed
tree: 9e4ffed10376dd4007a5dd5f9be841439c1f01c7
  1. .github/
  2. .vscode/
  3. apps/
  4. device/
  5. modules/
  6. system/
  7. targets/
  8. tools/
  9. web_app/
  10. .bazelignore
  11. .bazelrc
  12. .bazelversion
  13. .clang-format
  14. .clangd.shared
  15. .gitignore
  16. .pw_console.yaml
  17. AUTHORS
  18. BUILD.bazel
  19. CONTRIBUTING.md
  20. LICENSE
  21. MODULE.bazel
  22. OWNERS
  23. pigweed.json
  24. README.md
README.md

Pigweed Open Source Template Repository

This repository is a template that we will use when creating new open source repositories for Pigweed.