Commit Graph

890 Commits

Author SHA1 Message Date
Ryan Summers 86a3f840e9 Fixing comments 2021-02-19 12:09:35 +01:00
Ryan Summers ae373370aa Adding general MQTT utility for stabilizer 2021-02-19 12:07:09 +01:00
bors[bot] bfb416b85b
Merge #261
261: MQTT settings and telemetry r=ryan-summers a=ryan-summers

This PR replaces https://github.com/quartiq/stabilizer/pull/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 <ryan.summers@vertigo-designs.com>
Co-authored-by: Robert Jördens <rj@quartiq.de>
2021-02-19 10:06:39 +00:00
Ryan Summers 28db428829 Fixing bench tests 2021-02-19 11:02:46 +01:00
Ryan Summers 76f2f749f1 Removing information about legacy server 2021-02-19 10:57:12 +01:00
Ryan Summers 04dff30dce Fixing dependencies: 2021-02-19 10:45:53 +01:00
Ryan Summers c6ef78cdc5 Pulling back easybench changes 2021-02-19 10:44:46 +01:00
Ryan Summers 2ac7568d5b Updating dependencies 2021-02-19 10:36:39 +01:00
Ryan Summers 65a0831e2d Merge branch 'master' into feature/mqtt-convert 2021-02-19 10:30:51 +01:00
bors[bot] 83e770509e
Merge #275
275: use num crate r=jordens a=jordens

* Use `num` crate
* Clean up lowpass gain handling

* [x] test on hardware

Co-authored-by: Robert Jördens <rj@quartiq.de>
2021-02-19 08:51:04 +00:00
Robert Jördens fcb7bb0025 dsp: fix nightly 2021-02-19 09:50:38 +01:00
Robert Jördens ccec9d7fed complex: rename extension trait, fix MulScaled 2021-02-19 09:29:38 +01:00
Robert Jördens c87cb3eb9c dsp: factor out tools 2021-02-19 09:20:42 +01:00
Robert Jördens a97829baf5 add saturating_scale 2021-02-18 22:14:21 +01:00
Robert Jördens 33b9b41405 lowpass: saturating math since it's free 2021-02-18 18:51:29 +01:00
Robert Jördens c0457787bb lockin-external: use enum 2021-02-18 18:43:45 +01:00
Robert Jördens f050ba8e9f lockin: let the lowpass do all filtering 2021-02-18 14:29:47 +01:00
Robert Jördens 07b7751dbc move lowpass gain outside lowpass/lockin 2021-02-18 14:25:54 +01:00
Robert Jördens 9983fad041 dsp: use num 2021-02-18 14:07:43 +01:00
Robert Jördens 04250360c1 deps: make miniconf a patch 2021-02-17 18:40:03 +01:00
Robert Jördens 78e69b1707 s/criterion/easybench/ for less weight 2021-02-17 18:35:52 +01:00
Ryan Summers 90ef0836af Fixing style 2021-02-17 17:56:49 +01:00
Ryan Summers 63a2220fa0 Removing support for configuring IIR state 2021-02-17 17:56:18 +01:00
Ryan Summers a55b30e6c4 Working around dependency injection bug 2021-02-17 17:50:17 +01:00
Ryan Summers e8c4829790 Adding docs for the cycle counter 2021-02-17 17:26:54 +01:00
Ryan Summers 3c8cd58d6f Removing lockin-external changes 2021-02-17 17:22:43 +01:00
Ryan Summers e8711d8f4f Merge branch 'master' into feature/mqtt-convert 2021-02-17 16:54:37 +01:00
Ryan Summers 50476f68fd Adding settings support for lockin-external 2021-02-17 16:53:53 +01:00
Robert Jördens 1239a29904
Merge pull request #274 from quartiq/rj/trait-on-type-alias
impl trait on type alias instead of newtypes
2021-02-17 16:51:02 +01:00
Ryan Summers b66f80f784 Fixing dependencies 2021-02-17 16:30:39 +01:00
Robert Jördens b1d45d831c fmt 2021-02-17 16:25:21 +01:00
Robert Jördens 07714fbca4 test: trait in scope 2021-02-17 16:24:45 +01:00
Robert Jördens b69131f5f5 impl trait on type alias instead of newtypes 2021-02-17 16:13:30 +01:00
Ryan Summers 6b0595b4ad Fixing dsp toml 2021-02-17 14:50:49 +01:00
Ryan Summers cb16e9a85f Updating settings update function 2021-02-17 12:59:24 +01:00
Ryan Summers 13e02710cd Adding simplified clocking semantics 2021-02-17 12:08:03 +01:00
Ryan Summers 9e1f4a864c Merge branch 'master' into feature/mqtt-convert 2021-02-17 11:44:10 +01:00
Robert Jördens b7e4f402aa
Merge pull request #273 from quartiq/dma2-instantiation-fix
Fixing DMA2 instantiation issue
2021-02-16 15:58:54 +01:00
Robert Jördens aeaeac1f17 add comment on dma2 init 2021-02-16 15:58:16 +01:00
Robert Jördens fdb0c40764 fmt 2021-02-16 15:22:58 +01:00
Ryan Summers 3abd47494b Fixing DMA2 instantiation issue 2021-02-16 15:10:00 +01:00
Harry Ho 12ea66a3f7 update cargosha256 2021-02-16 11:45:44 +08:00
Robert Jördens cca8adb608
Merge pull request #270 from quartiq/rj/deps
dependencies: bump
2021-02-15 09:31:29 +01:00
Robert Jördens 43c0ba9ea0 dependencies: bump 2021-02-15 09:18:31 +01:00
Robert Jördens fcf59be684
Merge pull request #269 from quartiq/rj/misc
fix hal branch, cleanup code
2021-02-15 09:00:58 +01:00
Robert Jördens efbf750b20 Merge remote-tracking branch 'origin/master' into rj/misc
* origin/master:
  Upgrade to serde-json-core v0.2.0
2021-02-15 08:55:40 +01:00
Robert Jördens cfc4cb382d dependencies: hal ref is on master now [nfc] 2021-02-15 08:53:55 +01:00
Robert Jördens 5fc45a659b lockin-external: comment style [nfc] 2021-02-15 08:51:19 +01:00
Robert Jördens a926c3554b
Merge pull request #268 from dnadlinger/json-020
Upgrade to serde-json-core v0.2.0
2021-02-15 08:04:44 +01:00
Robert Jördens b581a016ce lockin: redundant new 2021-02-14 17:55:01 +01:00