diff --git a/src/cfclient/ui/tabs/ConsoleTab.py b/src/cfclient/ui/tabs/ConsoleTab.py
index bce1447a52..a999fc7ec5 100644
--- a/src/cfclient/ui/tabs/ConsoleTab.py
+++ b/src/cfclient/ui/tabs/ConsoleTab.py
@@ -80,6 +80,9 @@ def __init__(self, tabWidget, helper, *args):
self._propellerTestButton.clicked.connect(
lambda enabled:
self._helper.cf.param.set_value("health.startPropTest", '1'))
+ self._batteryTestButton.clicked.connect(
+ lambda enabled:
+ self._helper.cf.param.set_value("health.startBatTest", '1'))
def printText(self, text):
# Make sure we get printouts from the Crazyflie into the log (such as
@@ -94,8 +97,10 @@ def _connected(self, link_uri):
"""Callback when the Crazyflie has been connected"""
self._dumpSystemLoadButton.setEnabled(True)
self._propellerTestButton.setEnabled(True)
+ self._batteryTestButton.setEnabled(True)
def _disconnected(self, link_uri):
"""Callback for when the Crazyflie has been disconnected"""
self._dumpSystemLoadButton.setEnabled(False)
self._propellerTestButton.setEnabled(False)
+ self._batteryTestButton.setEnabled(False)
diff --git a/src/cfclient/ui/tabs/consoleTab.ui b/src/cfclient/ui/tabs/consoleTab.ui
index 7988c432e4..857a850c64 100644
--- a/src/cfclient/ui/tabs/consoleTab.ui
+++ b/src/cfclient/ui/tabs/consoleTab.ui
@@ -54,6 +54,19 @@
+ -
+
+
+ false
+
+
+ <html><head/><body><p><span style=" font-weight:600; font-style:italic;">Experimental feature:</span><span style=" font-weight:600;"> Test battery (power path)</span></p><p>This test will very shortly spin the motors at pull power and measure the voltage drop. This voltage drop should not be to high. If it is, the battery is probably bad, but it could also be the connector or other components in the power path that adds resistance.</p><p>The results are printed on the console and can be read from the health.batterySag and health.batteryPass log variables.</p><p>This feature is meant for the Crazyflie 2.X only and should probably not be used by e.g. Crazyflie Bolt or BigQuad. For them the test could even be dangerous.</p><p><br/></p><p><br/></p></body></html>
+
+
+ Battery test
+
+
+
-