You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Setting the voltage of a channel has to be done in volts, but getting returns it in milivolts.
See the getter and setter function (ad5686.py at line 118):
def to_raw(self, val):
"""Converts raw value to SI"""
return int(1000.0 * val / self.scale)
@property
def volts(self):
"""AD5686 channel value in volts"""
return self.raw * self.scale
@volts.setter
def volts(self, val):
"""AD5686 channel value in volts"""
self.raw = self.to_raw(val)
The text was updated successfully, but these errors were encountered:
brunolalb
changed the title
AD5686 - get and set channel volts is inconsistent
AD5686 - bugs
Aug 1, 2024
brunolalb
changed the title
AD5686 - bugs
AD5686 - get and set channel volts is inconsistent
Aug 1, 2024
Setting the voltage of a channel has to be done in volts, but getting returns it in milivolts.
See the getter and setter function (ad5686.py at line 118):
The text was updated successfully, but these errors were encountered: