Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MQTT settings and telemetry #242

Closed
wants to merge 17 commits into from
Closed

MQTT settings and telemetry #242

wants to merge 17 commits into from

Conversation

ryan-summers
Copy link
Member

@ryan-summers ryan-summers commented Jan 27, 2021

This PR addresses #149 by exposing a simple MQTT-based settings interface

TODO:

  • Resolve mutable ownership issues in the MqttInterface
  • Expand settings interface to lockin.rs
  • Add all settings (not yet supported by miniconf)
  • Finalize and publish the miniconf package
  • Move MqttInterface-like behaviors over to miniconf
  • Move smoltcp-nal to a separate crate
  • Test on hardware
  • Implement stabilizer telemetry

@jordens
Copy link
Member

jordens commented Feb 2, 2021

There will be items where committing them should not be unconditional. E.g. the state of an IIR filter: it makes sense to set them (to do a bumpless transfer you set the coefficients to "hold" the output, then manually change the output state, then set the coefficients to start steering the output) but it makes no sense to set it on each commit() even if it hasn't been dirtied. One option would be to encode that in the settings, i.e. have a setting that explicitly marks other settings as dirty and to be committed.

jordens and others added 7 commits February 3, 2021 13:04
…into rj/bump-hal-smoltcp

* origin/dependabot/cargo/smoltcp-0.7.0:
  build(deps): bump smoltcp from 0.6.0 to 0.7.0
…b8a04c' into rj/bump-hal-smoltcp

* origin/dependabot/cargo/stm32h7xx-hal-2b8a04c:
  build(deps): bump stm32h7xx-hal from `3da22d4` to `2b8a04c`
@ryan-summers ryan-summers mentioned this pull request Feb 3, 2021
8 tasks
@ryan-summers
Copy link
Member Author

Closing in favor of #261

bors bot added a commit that referenced this pull request Feb 19, 2021
261: MQTT settings and telemetry r=ryan-summers a=ryan-summers

This PR replaces #242

This PR addresses #149 by exposing a simple MQTT-based settings interface

**TODO**:
- [x] Resolve mutable ownership issues in the `MqttInterface`
- [x] Expand settings interface to `lockin.rs`
- [x] Add all settings (not yet supported by `miniconf`)
- [x] ~~Finalize and publish the `miniconf` package~~ Deferred to the future.
- [x] Move `MqttInterface`-like behaviors over to `miniconf`
- [x] Move smoltcp-nal to a separate crate
- [x] Test on hardware
- [x] ~~Implement stabilizer telemetry~~: Deferred to future

Co-authored-by: Ryan Summers <[email protected]>
Co-authored-by: Robert Jördens <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants