/
vasandi
/
DroneControl
Обзор
Документация
Войти
/
vasandi
/
DroneControl
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
DroneSimClient/MainWindow/mainwindow.ui
1 031 строка
31 KB
Андрей Васильченко
управление дроном в Airsim
08 июл 2026, 13:29
08 июл 2026, 13:29
d1a17d2
Код
Авторство
О чём код?
<?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> <class>MainWindow</class> <widget class="QMainWindow" name="MainWindow"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>1233</width> <height>946</height> </rect> </property> <property name="windowTitle"> <string>Управление дроном</string> </property> <widget class="QWidget" name="centralwidget"> <layout class="QVBoxLayout" name="verticalLayout_21"> <item> <layout class="QHBoxLayout" name="horizontalLayout_4"> <item> <widget class="QGroupBox" name="groupBox"> <property name="maximumSize"> <size> <width>16777215</width> <height>320</height> </size> </property> <property name="title"> <string>Старт</string> </property> <layout class="QVBoxLayout" name="verticalLayout_3"> <item> <layout class="QVBoxLayout" name="verticalLayout"> <item> <widget class="QPushButton" name="pBtnConnect"> <property name="minimumSize"> <size> <width>120</width> <height>30</height> </size> </property> <property name="maximumSize"> <size> <width>120</width> <height>30</height> </size> </property> <property name="text"> <string>Подключение</string> </property> </widget> </item> <item> <widget class="QPushButton" name="pBtnArm"> <property name="minimumSize"> <size> <width>120</width> <height>30</height> </size> </property> <property name="maximumSize"> <size> <width>120</width> <height>30</height> </size> </property> <property name="text"> <string>Запуск</string> </property> </widget> </item> <item> <widget class="QPushButton" name="pBtnTakeOff"> <property name="minimumSize"> <size> <width>120</width> <height>30</height> </size> </property> <property name="maximumSize"> <size> <width>120</width> <height>30</height> </size> </property> <property name="text"> <string>Взлёт</string> </property> </widget> </item> <item> <widget class="QPushButton" name="pBtnTestBox"> <property name="minimumSize"> <size> <width>120</width> <height>30</height> </size> </property> <property name="maximumSize"> <size> <width>120</width> <height>30</height> </size> </property> <property name="text"> <string>Тест бокс</string> </property> </widget> </item> </layout> </item> </layout> </widget> </item> <item> <widget class="QGroupBox" name="groupBox_3"> <property name="maximumSize"> <size> <width>16777215</width> <height>320</height> </size> </property> <property name="title"> <string>Управление</string> </property> <layout class="QVBoxLayout" name="verticalLayout_16"> <item> <layout class="QHBoxLayout" name="horizontalLayout_3"> <item> <layout class="QVBoxLayout" name="verticalLayout_6"> <item> <spacer name="verticalSpacer_6"> <property name="orientation"> <enum>Qt::Vertical</enum> </property> <property name="sizeHint" stdset="0"> <size> <width>20</width> <height>40</height> </size> </property> </spacer> </item> <item> <widget class="QPushButton" name="pBtnLeft"> <property name="minimumSize"> <size> <width>120</width> <height>30</height> </size> </property> <property name="maximumSize"> <size> <width>120</width> <height>30</height> </size> </property> <property name="text"> <string>Влево</string> </property> </widget> </item> <item> <spacer name="verticalSpacer_5"> <property name="orientation"> <enum>Qt::Vertical</enum> </property> <property name="sizeHint" stdset="0"> <size> <width>20</width> <height>40</height> </size> </property> </spacer> </item> </layout> </item> <item> <layout class="QVBoxLayout" name="verticalLayout_15"> <item> <widget class="QPushButton" name="pBtnForward"> <property name="minimumSize"> <size> <width>120</width> <height>30</height> </size> </property> <property name="maximumSize"> <size> <width>120</width> <height>30</height> </size> </property> <property name="text"> <string>Вперёд</string> </property> </widget> </item> <item> <layout class="QVBoxLayout" name="verticalLayout_14"> <item> <layout class="QHBoxLayout" name="horizontalLayout_2"> <item> <layout class="QVBoxLayout" name="verticalLayout_5"> <item> <widget class="QLabel" name="label"> <property name="text"> <string>Скорость</string> </property> </widget> </item> <item> <widget class="QDoubleSpinBox" name="sbSpeed"/> </item> </layout> </item> <item> <layout class="QVBoxLayout" name="verticalLayout_13"> <item> <widget class="QRadioButton" name="rbYaw"> <property name="text"> <string>Угол рысканья</string> </property> <property name="checked"> <bool>true</bool> </property> </widget> </item> <item> <widget class="QDoubleSpinBox" name="sbYaw"/> </item> </layout> </item> </layout> </item> <item> <layout class="QVBoxLayout" name="verticalLayout_12"> <item> <widget class="QLabel" name="label_2"> <property name="text"> <string>Режим полёта</string> </property> </widget> </item> <item> <widget class="QComboBox" name="cBoxDrivetrainType"> <property name="minimumSize"> <size> <width>150</width> <height>22</height> </size> </property> <property name="maximumSize"> <size> <width>150</width> <height>22</height> </size> </property> <item> <property name="text"> <string>MaxDegreeOfFreedom</string> </property> </item> <item> <property name="text"> <string>ForwardOnly</string> </property> </item> </widget> </item> </layout> </item> </layout> </item> <item> <widget class="QPushButton" name="pBtnBack"> <property name="minimumSize"> <size> <width>120</width> <height>30</height> </size> </property> <property name="maximumSize"> <size> <width>120</width> <height>30</height> </size> </property> <property name="text"> <string>Назад</string> </property> </widget> </item> </layout> </item> <item> <layout class="QVBoxLayout" name="verticalLayout_7"> <item> <spacer name="verticalSpacer_2"> <property name="orientation"> <enum>Qt::Vertical</enum> </property> <property name="sizeHint" stdset="0"> <size> <width>20</width> <height>40</height> </size> </property> </spacer> </item> <item> <widget class="QPushButton" name="pBtnRight"> <property name="minimumSize"> <size> <width>120</width> <height>30</height> </size> </property> <property name="maximumSize"> <size> <width>120</width> <height>30</height> </size> </property> <property name="text"> <string>Вправо</string> </property> </widget> </item> <item> <spacer name="verticalSpacer_4"> <property name="orientation"> <enum>Qt::Vertical</enum> </property> <property name="sizeHint" stdset="0"> <size> <width>20</width> <height>40</height> </size> </property> </spacer> </item> </layout> </item> </layout> </item> <item> <layout class="QHBoxLayout" name="horizontalLayout"> <item> <widget class="QPushButton" name="pBtnUp"> <property name="minimumSize"> <size> <width>120</width> <height>30</height> </size> </property> <property name="maximumSize"> <size> <width>120</width> <height>30</height> </size> </property> <property name="text"> <string>Вверх</string> </property> </widget> </item> <item> <spacer name="horizontalSpacer"> <property name="orientation"> <enum>Qt::Horizontal</enum> </property> <property name="sizeHint" stdset="0"> <size> <width>40</width> <height>20</height> </size> </property> </spacer> </item> <item> <widget class="QPushButton" name="pBtnDown"> <property name="minimumSize"> <size> <width>120</width> <height>30</height> </size> </property> <property name="maximumSize"> <size> <width>120</width> <height>30</height> </size> </property> <property name="text"> <string>Вниз</string> </property> </widget> </item> </layout> </item> </layout> </widget> </item> <item> <layout class="QVBoxLayout" name="verticalLayout_8"> <item> <widget class="QGroupBox" name="groupBox_2"> <property name="title"> <string>Остановка</string> </property> <layout class="QVBoxLayout" name="verticalLayout_2"> <item> <widget class="QPushButton" name="pBtnLanding"> <property name="minimumSize"> <size> <width>120</width> <height>30</height> </size> </property> <property name="maximumSize"> <size> <width>120</width> <height>30</height> </size> </property> <property name="text"> <string>Посадка</string> </property> </widget> </item> <item> <widget class="QPushButton" name="pBtnDisArm"> <property name="minimumSize"> <size> <width>120</width> <height>30</height> </size> </property> <property name="maximumSize"> <size> <width>120</width> <height>30</height> </size> </property> <property name="text"> <string>Отключение</string> </property> </widget> </item> </layout> </widget> </item> <item> <widget class="QGroupBox" name="groupBox_11"> <property name="title"> <string>Сохранение</string> </property> <layout class="QVBoxLayout" name="verticalLayout_4"> <item> <widget class="QCheckBox" name="cBoxImages"> <property name="text"> <string>Изображение с камеры</string> </property> </widget> </item> <item> <widget class="QCheckBox" name="cBoxSensorsData"> <property name="text"> <string>Телеметрия</string> </property> </widget> </item> </layout> </widget> </item> </layout> </item> </layout> </item> <item> <widget class="QGroupBox" name="groupBox_5"> <property name="minimumSize"> <size> <width>0</width> <height>150</height> </size> </property> <property name="title"> <string>Телеметрия</string> </property> <layout class="QHBoxLayout" name="horizontalLayout_7"> <item> <widget class="QGroupBox" name="groupBox_6"> <property name="title"> <string>Барометр</string> </property> <layout class="QVBoxLayout" name="verticalLayout_10"> <item> <widget class="QTableWidget" name="twBarometer"> <row> <property name="text"> <string/> </property> </row> <row> <property name="text"> <string/> </property> </row> <row> <property name="text"> <string/> </property> </row> <column> <property name="text"> <string>Параметр</string> </property> </column> <column> <property name="text"> <string>Значение</string> </property> </column> <item row="0" column="0"> <property name="text"> <string>Высота</string> </property> </item> <item row="1" column="0"> <property name="text"> <string>Давление</string> </property> </item> <item row="2" column="0"> <property name="text"> <string>qnh</string> </property> </item> </widget> </item> </layout> </widget> </item> <item> <widget class="QGroupBox" name="groupBox_7"> <property name="title"> <string>ИНС</string> </property> <layout class="QHBoxLayout" name="horizontalLayout_5"> <item> <widget class="QTableWidget" name="twAngularVel"> <row> <property name="text"> <string/> </property> </row> <row> <property name="text"> <string/> </property> </row> <row> <property name="text"> <string/> </property> </row> <column> <property name="text"> <string>Угловая скорость</string> </property> </column> <column> <property name="text"> <string>Значение</string> </property> </column> <item row="0" column="0"> <property name="text"> <string>vx</string> </property> </item> <item row="1" column="0"> <property name="text"> <string>vy</string> </property> </item> <item row="2" column="0"> <property name="text"> <string>vz</string> </property> </item> </widget> </item> <item> <widget class="QTableWidget" name="twLinearAccel"> <row> <property name="text"> <string/> </property> </row> <row> <property name="text"> <string/> </property> </row> <row> <property name="text"> <string/> </property> </row> <column> <property name="text"> <string>Линейное ускорение</string> </property> </column> <column> <property name="text"> <string>Значение</string> </property> </column> <item row="0" column="0"> <property name="text"> <string>ax</string> </property> </item> <item row="1" column="0"> <property name="text"> <string>ay</string> </property> </item> <item row="2" column="0"> <property name="text"> <string>az</string> </property> </item> </widget> </item> </layout> </widget> </item> <item> <widget class="QGroupBox" name="groupBox_8"> <property name="title"> <string>GPS</string> </property> <layout class="QHBoxLayout" name="horizontalLayout_6"> <item> <widget class="QTableWidget" name="twGps"> <row> <property name="text"> <string/> </property> </row> <row> <property name="text"> <string/> </property> </row> <row> <property name="text"> <string/> </property> </row> <row> <property name="text"> <string/> </property> </row> <row> <property name="text"> <string/> </property> </row> <row> <property name="text"> <string/> </property> </row> <row> <property name="text"> <string/> </property> </row> <row> <property name="text"> <string/> </property> </row> <column> <property name="text"> <string>Параметр</string> </property> </column> <column> <property name="text"> <string>Значение</string> </property> </column> <item row="0" column="0"> <property name="text"> <string>Широта</string> </property> </item> <item row="1" column="0"> <property name="text"> <string>Долгота</string> </property> </item> <item row="2" column="0"> <property name="text"> <string>Высота</string> </property> </item> <item row="3" column="0"> <property name="text"> <string>vx</string> </property> </item> <item row="4" column="0"> <property name="text"> <string>vy</string> </property> </item> <item row="5" column="0"> <property name="text"> <string>vz</string> </property> </item> <item row="6" column="0"> <property name="text"> <string>HDOP</string> </property> </item> <item row="7" column="0"> <property name="text"> <string>VDOP</string> </property> </item> </widget> </item> </layout> </widget> </item> <item> <widget class="QGroupBox" name="groupBox_9"> <property name="title"> <string>Магнитометр</string> </property> <layout class="QVBoxLayout" name="verticalLayout_11"> <item> <widget class="QTableWidget" name="twMagnetometer"> <row> <property name="text"> <string/> </property> </row> <row> <property name="text"> <string/> </property> </row> <row> <property name="text"> <string/> </property> </row> <column> <property name="text"> <string>Параметр</string> </property> </column> <column> <property name="text"> <string>Значение</string> </property> </column> <item row="0" column="0"> <property name="text"> <string>x</string> </property> </item> <item row="1" column="0"> <property name="text"> <string>y</string> </property> </item> <item row="2" column="0"> <property name="text"> <string>z</string> </property> </item> </widget> </item> </layout> </widget> </item> </layout> </widget> </item> <item> <layout class="QHBoxLayout" name="horizontalLayout_8"> <item> <widget class="QGroupBox" name="groupBox_4"> <property name="maximumSize"> <size> <width>500</width> <height>16777215</height> </size> </property> <property name="title"> <string>Логирование</string> </property> <layout class="QVBoxLayout" name="verticalLayout_19"> <item> <widget class="QTextEdit" name="teLog"/> </item> </layout> </widget> </item> <item> <widget class="QGroupBox" name="groupBox_14"> <property name="title"> <string>Камера</string> </property> <layout class="QVBoxLayout" name="verticalLayout_18"> <item> <widget class="QCheckBox" name="cBoxGetImage"> <property name="text"> <string>Запрос изображения</string> </property> </widget> </item> <item> <widget class="QGroupBox" name="groupBox_12"> <property name="title"> <string>Направление</string> </property> <layout class="QVBoxLayout" name="verticalLayout_9"> <item> <widget class="QRadioButton" name="rbFrontLeft"> <property name="text"> <string>front-left</string> </property> </widget> </item> <item> <widget class="QRadioButton" name="rbFrontCenter"> <property name="text"> <string>front-center</string> </property> <property name="checked"> <bool>true</bool> </property> </widget> </item> <item> <widget class="QRadioButton" name="rbFrontRight"> <property name="text"> <string>front-right</string> </property> </widget> </item> <item> <widget class="QRadioButton" name="rbFpv"> <property name="text"> <string>fpv</string> </property> </widget> </item> <item> <widget class="QRadioButton" name="rbBackCenter"> <property name="text"> <string>back-center</string> </property> </widget> </item> <item> <widget class="QRadioButton" name="rbStereo"> <property name="text"> <string>stereo</string> </property> </widget> </item> </layout> </widget> </item> <item> <widget class="QGroupBox" name="groupBox_13"> <property name="title"> <string>Типы изображений</string> </property> <layout class="QVBoxLayout" name="verticalLayout_17"> <item> <widget class="QRadioButton" name="rbRGB"> <property name="text"> <string>RGB</string> </property> <property name="checked"> <bool>true</bool> </property> </widget> </item> <item> <widget class="QRadioButton" name="rbDepthPlanar"> <property name="text"> <string>Depth Planar</string> </property> </widget> </item> <item> <widget class="QRadioButton" name="rbDepthPerspective"> <property name="minimumSize"> <size> <width>109</width> <height>17</height> </size> </property> <property name="text"> <string>Depth Perspective</string> </property> </widget> </item> <item> <widget class="QRadioButton" name="rbSegmentation"> <property name="minimumSize"> <size> <width>89</width> <height>17</height> </size> </property> <property name="text"> <string>Segmentation</string> </property> </widget> </item> </layout> </widget> </item> </layout> </widget> </item> <item> <widget class="QGroupBox" name="groupBox_10"> <property name="title"> <string>Видео с дрона</string> </property> <layout class="QVBoxLayout" name="verticalLayout_20"> <item> <widget class="QLabel" name="labelImage"> <property name="minimumSize"> <size> <width>640</width> <height>360</height> </size> </property> <property name="maximumSize"> <size> <width>640</width> <height>360</height> </size> </property> <property name="text"> <string>No image</string> </property> </widget> </item> </layout> </widget> </item> </layout> </item> </layout> </widget> <widget class="QMenuBar" name="menubar"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>1233</width> <height>21</height> </rect> </property> <widget class="QMenu" name="menu"> <property name="title"> <string>Файл</string> </property> <addaction name="actionExit"/> </widget> <widget class="QMenu" name="menu_2"> <property name="title"> <string>Справка</string> </property> <addaction name="actionAbout"/> </widget> <addaction name="menu"/> <addaction name="menu_2"/> </widget> <widget class="QStatusBar" name="statusbar"/> <action name="actionExit"> <property name="text"> <string>Выход</string> </property> </action> <action name="actionAbout"> <property name="text"> <string>О программе</string> </property> </action> </widget> <resources/> <connections/> <designerdata> <property name="gridDeltaX"> <number>4</number> </property> <property name="gridDeltaY"> <number>4</number> </property> <property name="gridSnapX"> <bool>true</bool> </property> <property name="gridSnapY"> <bool>true</bool> </property> <property name="gridVisible"> <bool>true</bool> </property> </designerdata> </ui>