msoon / PyMonsoon

Monsoon Power Monitor Python Library
MIT License
55 stars 23 forks source link

HVPM: Correct raw_from_amps implementation #2

Closed ccfries closed 7 years ago

ccfries commented 7 years ago

Taking an input of amps, the correct behavior for raw_from_amps is seen when calculating the raw value as: (65535 * amps / 15.625)