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.
1 parent 5442a28 commit 8f41df2Copy full SHA for 8f41df2
ev3dev.py
@@ -1878,6 +1878,21 @@ def type(self):
1878
1879
1880
#~autogen
1881
+
1882
+ @property
1883
+ def measured_amps(self):
1884
+ """
1885
+ The measured current that the battery is supplying (in amps)
1886
1887
+ return self.measured_current / 1e6
1888
1889
1890
+ def measured_volts(self):
1891
1892
+ The measured voltage that the battery is supplying (in volts)
1893
1894
+ return self.measured_voltage / 1e6
1895
1896
#~autogen generic-class classes.legoPort>currentClass
1897
1898
class LegoPort(Device):
0 commit comments