We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 94f981a + 8f41df2 commit e43b4d5Copy full SHA for e43b4d5
ev3dev.py
@@ -1880,6 +1880,21 @@ def type(self):
1880
1881
1882
#~autogen
1883
+
1884
+ @property
1885
+ def measured_amps(self):
1886
+ """
1887
+ The measured current that the battery is supplying (in amps)
1888
1889
+ return self.measured_current / 1e6
1890
1891
1892
+ def measured_volts(self):
1893
1894
+ The measured voltage that the battery is supplying (in volts)
1895
1896
+ return self.measured_voltage / 1e6
1897
1898
#~autogen generic-class classes.legoPort>currentClass
1899
1900
class LegoPort(Device):
0 commit comments