pymate
pymate copied to clipboard
pv_current does not match with the real value
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?
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.