Building an abstraction for sensors #14
jake-g00dwin
started this conversation in
Ideas
Replies: 2 comments
-
At the very least we should probably come up with a standard of requests the SBC can make to the sensor modules to figure out what kind of data they will be sending and what the sensors actually are. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Okay, So I've started on a repo with an example of what could work. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Idea:
Write out object traits/methods that sensor modules have to implement, a set of universal methods such as.
These would accept embedded_hal i2c/spi types allowing us to have a single sensor_module code base for all available sensors, that could work with all sensor modules that implement the traits.
this could turn our sensor module code into something like this.
Beta Was this translation helpful? Give feedback.
All reactions