CarletonURocketry / fetcher

A QNX process for fetching data from sensors over I2C.
https://carletonurocketry.github.io/fetcher/
MIT License
1 stars 0 forks source link

PAC195X #51

Closed linguini1 closed 3 months ago

linguini1 commented 3 months ago

This PR implements a driver for the PAC195X family of current sensors. The PAC1952-2 also has a collector thread implementation (because the MCU board contains that variant).

This PR also inter-ops with the new voltage encoding for telemetry. It includes a change that allows sensor data types (TAG_*) to implicitly be associated with a numerical ID. This is useful for sensors that measure localized data.

For example, right now it doesn't matter which sensor temperature is measured on, because the temperature being sensed should be roughly consistent across all sensors. However, the voltage sensor measures voltages on a specific trace. It is important to track which measurements are connected with which trace, or it will be difficult to detect voltage changes and match up the measurements with certain components/traces.

linguini1 commented 3 months ago

Co-PR of https://github.com/CarletonURocketry/packager/pull/71 in packager to make sure no interoperability is broken with this change.