jorticus / pymate

Outback MATE python interface
https://jared.geek.nz/pymate
GNU General Public License v2.0
28 stars 9 forks source link

pv_current does not match with the real value #31

Open saulep98 opened 1 year ago

saulep98 commented 1 year ago

I am using the pymate library for python, I connected the flexmax 80 with a raspberry pi and had communication, but when I printed the status, the pv_current has no decimals, for example the flexmax display shows 3.6A and the script readout.py prints 3.0 A.

Do you have any idea what might be going on?

jorticus commented 1 year ago

It's possible the lower digit of pv_current is located in a different part of the packet, though I'd explored it pretty thoroughly by modifying each byte in the packet and seeing the effect on the MATE display.

Currently pv_current has a resolution of 0 decimal places and has a range of -127A to +127A.

Not sure there's much I can do about this unless I can figure out which byte (if any) is hiding that extra few bits of resolution.