Fishwaldo opened a new pull request, #20379:
URL: https://github.com/apache/nuttx/pull/20379

   ## Summary
   
   Adds a uORB interface for the INA226, publishing voltage, current and power 
from a single reading. It sits beside the existing character driver and 
replaces it when `CONFIG_SENSORS_INA226_UORB` is set.
   
   ## Impact
   
   New file behind `CONFIG_SENSORS_INA226_UORB`, default `n`, depending on 
`SENSORS_INA226` and `UORB`. With it set, `ina226_uorb.c` is built in place of 
`ina226.c` and `ina226_register_uorb()` replaces `ina226_register()`. Unset, 
nothing changes.
   
   ## Testing
   
   ESWIN EIC7700 EVB, four INA226 rails on i2c11:
   
   ```
   nsh> sensortest -n 1 voltage5
   voltage5: timestamp:93633993 value:12.03
   nsh> sensortest -n 1 current5
   current5: timestamp:94560994 value:0.73
   nsh> sensortest -n 1 power5
   power5: timestamp:95488993 value:8.79
   ```
   
   12.03V x 0.73A is 8.78W against the 8.79W reported, so the three values are 
consistent with having been measured together. Built for `eic7700-evb:nsh` with 
`-Wno-cpp -Werror`, with the uORB driver selected and `ina226.c` excluded.
   


-- 
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]

Reply via email to