mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-02-05 18:51:00 +08:00
[supervision] improve start time (#3559)
--------- Co-authored-by: Fabien-B <fabien.b@github.com>
This commit is contained in:
@@ -6,6 +6,7 @@ pyserial
|
|||||||
PyQt5
|
PyQt5
|
||||||
PyQtWebEngine
|
PyQtWebEngine
|
||||||
pyqtgraph
|
pyqtgraph
|
||||||
|
PyOpenGL
|
||||||
unidecode
|
unidecode
|
||||||
matplotlib
|
matplotlib
|
||||||
distro
|
distro
|
||||||
|
|||||||
@@ -8,3 +8,7 @@ Install the package `pyqt5-dev-tools` and run `make` to generate python ui files
|
|||||||
|
|
||||||
Install python dependencies:
|
Install python dependencies:
|
||||||
`python3 -m pip install -r requirements.txt`
|
`python3 -m pip install -r requirements.txt`
|
||||||
|
|
||||||
|
|
||||||
|
Install `qttools5-dev-tools` to edit the UI files with Qt5 Designer.
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# Form implementation generated from reading ui file 'ui/ui_conf_header.ui'
|
# Form implementation generated from reading ui file 'ui/ui_conf_header.ui'
|
||||||
#
|
#
|
||||||
# Created by: PyQt5 UI code generator 5.15.6
|
# Created by: PyQt5 UI code generator 5.15.10
|
||||||
#
|
#
|
||||||
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
|
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
|
||||||
# run again. Do not edit this file unless you know what you are doing.
|
# run again. Do not edit this file unless you know what you are doing.
|
||||||
@@ -33,6 +33,7 @@ class Ui_ConfHeader(object):
|
|||||||
sizePolicy.setHeightForWidth(self.ac_combo.sizePolicy().hasHeightForWidth())
|
sizePolicy.setHeightForWidth(self.ac_combo.sizePolicy().hasHeightForWidth())
|
||||||
self.ac_combo.setSizePolicy(sizePolicy)
|
self.ac_combo.setSizePolicy(sizePolicy)
|
||||||
self.ac_combo.setEditable(False)
|
self.ac_combo.setEditable(False)
|
||||||
|
self.ac_combo.setSizeAdjustPolicy(QtWidgets.QComboBox.AdjustToContents)
|
||||||
self.ac_combo.setObjectName("ac_combo")
|
self.ac_combo.setObjectName("ac_combo")
|
||||||
self.horizontalLayout.addWidget(self.ac_combo)
|
self.horizontalLayout.addWidget(self.ac_combo)
|
||||||
self.menu_button = QtWidgets.QToolButton(ConfHeader)
|
self.menu_button = QtWidgets.QToolButton(ConfHeader)
|
||||||
@@ -61,6 +62,7 @@ class Ui_ConfHeader(object):
|
|||||||
self.label_4.setObjectName("label_4")
|
self.label_4.setObjectName("label_4")
|
||||||
self.horizontalLayout.addWidget(self.label_4)
|
self.horizontalLayout.addWidget(self.label_4)
|
||||||
self.set_combo = QtWidgets.QComboBox(ConfHeader)
|
self.set_combo = QtWidgets.QComboBox(ConfHeader)
|
||||||
|
self.set_combo.setSizeAdjustPolicy(QtWidgets.QComboBox.AdjustToContents)
|
||||||
self.set_combo.setObjectName("set_combo")
|
self.set_combo.setObjectName("set_combo")
|
||||||
self.horizontalLayout.addWidget(self.set_combo)
|
self.horizontalLayout.addWidget(self.set_combo)
|
||||||
self.new_ac_action = QtWidgets.QAction(ConfHeader)
|
self.new_ac_action = QtWidgets.QAction(ConfHeader)
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ try:
|
|||||||
|
|
||||||
from pprzlink.message import PprzMessage
|
from pprzlink.message import PprzMessage
|
||||||
from pprz_connect import PprzConnect, PprzConfig
|
from pprz_connect import PprzConnect, PprzConfig
|
||||||
import calibration_utils
|
|
||||||
|
|
||||||
class MagViewer(QtWidgets.QWidget):
|
class MagViewer(QtWidgets.QWidget):
|
||||||
|
|
||||||
@@ -169,6 +169,7 @@ try:
|
|||||||
self.gl_widget.setCameraPosition(distance=self.mean_norm*5)
|
self.gl_widget.setCameraPosition(distance=self.mean_norm*5)
|
||||||
|
|
||||||
def calibrate(self):
|
def calibrate(self):
|
||||||
|
import calibration_utils
|
||||||
calib_text = ""
|
calib_text = ""
|
||||||
try:
|
try:
|
||||||
p0 = calibration_utils.get_min_max_guess(self.mag_data, 1.)
|
p0 = calibration_utils.get_min_max_guess(self.mag_data, 1.)
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ class PprzCenter(QMainWindow, Ui_SupervisionWindow):
|
|||||||
self.resize(window_size)
|
self.resize(window_size)
|
||||||
self.configuration_panel.init()
|
self.configuration_panel.init()
|
||||||
self.operation_panel.session.init()
|
self.operation_panel.session.init()
|
||||||
self.header.update_sets()
|
QtCore.QTimer.singleShot(100, self.header.update_sets)
|
||||||
|
|
||||||
def programs_state_changed(self, state: TabProgramsState, tab_index):
|
def programs_state_changed(self, state: TabProgramsState, tab_index):
|
||||||
self.tabwidget.setTabIcon(tab_index, TAB_ICONS[state])
|
self.tabwidget.setTabIcon(tab_index, TAB_ICONS[state])
|
||||||
|
|||||||
@@ -42,6 +42,9 @@
|
|||||||
<property name="editable">
|
<property name="editable">
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="sizeAdjustPolicy">
|
||||||
|
<enum>QComboBox::AdjustToContents</enum>
|
||||||
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
@@ -113,7 +116,11 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QComboBox" name="set_combo"/>
|
<widget class="QComboBox" name="set_combo">
|
||||||
|
<property name="sizeAdjustPolicy">
|
||||||
|
<enum>QComboBox::AdjustToContents</enum>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
<action name="new_ac_action">
|
<action name="new_ac_action">
|
||||||
|
|||||||
Reference in New Issue
Block a user