mirror of
https://github.com/brmlab/edubrm.git
synced 2025-06-07 20:34:00 +02:00
fix analog reference
This commit is contained in:
parent
738cfdfc15
commit
b192d0de23
1 changed files with 3 additions and 1 deletions
|
@ -24,7 +24,9 @@ class ModuleAWidget(QWidget):
|
|||
|
||||
def read_inputs(self):
|
||||
r = self.dev.read()
|
||||
u = r[1]/1023.0 * 3.3
|
||||
u = r[1]/1023.0 * 3.3 - 0.19
|
||||
if u < 0:
|
||||
u = 0
|
||||
self.ui.labelU.setText('%0.3f V' % u)
|
||||
self.ui.progressU.setValue(1000*u)
|
||||
self.data.pop(0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue