diff --git a/src/cfclient/ui/tabs/ConsoleTab.py b/src/cfclient/ui/tabs/ConsoleTab.py index 88a6061ec2..bce1447a52 100644 --- a/src/cfclient/ui/tabs/ConsoleTab.py +++ b/src/cfclient/ui/tabs/ConsoleTab.py @@ -77,6 +77,9 @@ def __init__(self, tabWidget, helper, *args): self._dumpSystemLoadButton.clicked.connect( lambda enabled: self._helper.cf.param.set_value("system.taskDump", '1')) + self._propellerTestButton.clicked.connect( + lambda enabled: + self._helper.cf.param.set_value("health.startPropTest", '1')) def printText(self, text): # Make sure we get printouts from the Crazyflie into the log (such as @@ -90,7 +93,9 @@ def clear(self): def _connected(self, link_uri): """Callback when the Crazyflie has been connected""" self._dumpSystemLoadButton.setEnabled(True) + self._propellerTestButton.setEnabled(True) def _disconnected(self, link_uri): """Callback for when the Crazyflie has been disconnected""" self._dumpSystemLoadButton.setEnabled(False) + self._propellerTestButton.setEnabled(False) diff --git a/src/cfclient/ui/tabs/consoleTab.ui b/src/cfclient/ui/tabs/consoleTab.ui index 6011683bae..7988c432e4 100644 --- a/src/cfclient/ui/tabs/consoleTab.ui +++ b/src/cfclient/ui/tabs/consoleTab.ui @@ -41,6 +41,19 @@ + + + + false + + + <html><head/><body><p><span style=" font-weight:600; font-style:italic;">Experimental feature:</span><span style=" font-weight:600;"> Tests propellers and motors</span></p><p>Place the Crazyflie on a flat hard surface and run the propeller test.</p><p>The crazyflie will run the motors in sequence and beeps the motors that are above the vibration threshold.</p><p>The results are also printed on the console.</p></body></html> + + + Propeller test + + +