Processing
This service follows the following steps:
- It reads the sensor data from the INA226 sensor over I2C
- When it receives the sensor data, it will wrap this data in an
EnergySensorOutput
message, which it will write to itsenergy
stream, as defined in its service.yaml
Refresh Rate
You will most likely want to use this service together with another service to measure energy consumption of a pipeline on the Rover. Be aware that the refresh rate of this sensor is quite low: 5 Hz (but this is configurable), so you might slow down your service if you read from this service in your main loop.
We advise to use a threaded solution in case you want to use this service. See the "knowing more" series on the ASE website for more information.