vortexntnu / vortex-auv

Software for guidance, navigation and control for the Vortex AUVs. Purpose built for competing in AUV/ROV competitions.
https://www.vortexntnu.no/
MIT License
91 stars 21 forks source link

Beluga PSM driver troubles #373

Closed PizzaAllTheWay closed 1 year ago

PizzaAllTheWay commented 1 year ago

It seems that the custom driver we made is not robust Sometimes the i2c signal gets wrong timing and we measure voltage of 4V instead of 16V! Need to investigate this issue Code for PSM driver: https://github.com/vortexntnu/vortex-auv/blob/feature/battery_monitoring/mission/internal_status/src/mcp3422.py

PizzaAllTheWay commented 1 year ago

Solved. We used the official MCP342x library for python, works flawlessly :) Tested the code. We also changed how we convert current measurements, so now it is accurate :D