Otpvondoiats opened a new pull request, #20115: URL: https://github.com/apache/nuttx/pull/20115
## Summary uORB currently has no sensor type for electrical quantities. Drivers that measure voltage, current or power (power monitors, fuel gauges, PMICs) have to fall back on the legacy character drivers, which are deprecated and report their values in three mutually incompatible unit systems. This series adds the missing electrical types to uORB, each with its own message struct in a single well-defined unit: | Type | Value | Unit | | --- | --- | --- | | `SENSOR_TYPE_VOLTAGE` (59) | `struct sensor_voltage` | V | | `SENSOR_TYPE_CURRENT` (60) | `struct sensor_current` | A, signed | | `SENSOR_TYPE_POWER` (61) | `struct sensor_power` | W (instantaneous active) | | `SENSOR_TYPE_RESISTANCE` (62) | `struct sensor_resistance` | Ohm | | `SENSOR_TYPE_CONDUCTIVITY` (63) | `struct sensor_conductivity` | S/m | | `SENSOR_TYPE_ENERGY` (64) | `struct sensor_energy` | uJ, signed | | `SENSOR_TYPE_CHARGE` (65) | `struct sensor_charge` | uC, signed | ## Impact - New feature only. No existing behaviour changes. ## Testing Pass. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
