mirror of
https://github.com/CopterExpress/clever-show.git
synced 2026-06-03 10:39:33 +00:00
gui upgrade
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -15,7 +15,8 @@ import math
|
||||
import requests
|
||||
import json
|
||||
from PyQt5 import QtCore
|
||||
import gui1
|
||||
import main_gui
|
||||
import gui_telem
|
||||
ip = [1, 2]
|
||||
# slids = 0
|
||||
sq_rad = 0
|
||||
@@ -41,16 +42,16 @@ sock_2.bind(('', 35002)) # назначается адресс и порт св
|
||||
sock_2.listen(1)
|
||||
|
||||
|
||||
"""class Dialog(QMainWindow, gui1.Ui_Dialog):
|
||||
class Dialog(QMainWindow, gui_telem.Ui_Dialog):
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
self.setupUi(self)
|
||||
|
||||
def up(self):
|
||||
self.voltage_2.setText('1234567')"""
|
||||
self.voltage_2.setText('1234567')
|
||||
|
||||
|
||||
class Widget(QMainWindow, gui1.Ui_MainWindow):
|
||||
class Widget(QMainWindow, main_gui.Ui_MainWindow):
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
self.setupUi(self)
|
||||
@@ -368,7 +369,7 @@ class Widget(QMainWindow, gui1.Ui_MainWindow):
|
||||
plt.show()
|
||||
|
||||
|
||||
#if __name__ == '__main__':
|
||||
|
||||
app = QApplication([])
|
||||
w = Widget()
|
||||
w.show()
|
||||
|
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB |
460
Server/gui/swarm_5.ui
Normal file
460
Server/gui/swarm_5.ui
Normal file
@@ -0,0 +1,460 @@
|
||||
<?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>1280</width>
|
||||
<height>720</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>1280</width>
|
||||
<height>720</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>1280</width>
|
||||
<height>720</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Drone Swarm</string>
|
||||
</property>
|
||||
<widget class="QWidget" name="centralwidget">
|
||||
<widget class="QPushButton" name="take_off_button">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>760</x>
|
||||
<y>70</y>
|
||||
<width>100</width>
|
||||
<height>40</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Take off all</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QPushButton" name="land_all_button">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>890</x>
|
||||
<y>70</y>
|
||||
<width>91</width>
|
||||
<height>40</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Land all</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QPushButton" name="disarm_all_button">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>1010</x>
|
||||
<y>70</y>
|
||||
<width>101</width>
|
||||
<height>40</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: red
|
||||
</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Disarm all</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QPushButton" name="take_off_n_button">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>760</x>
|
||||
<y>150</y>
|
||||
<width>100</width>
|
||||
<height>40</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Take off n</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QPushButton" name="land_n_button">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>890</x>
|
||||
<y>150</y>
|
||||
<width>91</width>
|
||||
<height>40</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true"/>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Land n</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QPushButton" name="disarm_n_button">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>1010</x>
|
||||
<y>150</y>
|
||||
<width>101</width>
|
||||
<height>40</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: red
|
||||
</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Disarm n</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QSpinBox" name="take_off_spinBox">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>790</x>
|
||||
<y>120</y>
|
||||
<width>50</width>
|
||||
<height>22</height>
|
||||
</rect>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QSpinBox" name="land_spinBox">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>910</x>
|
||||
<y>120</y>
|
||||
<width>50</width>
|
||||
<height>22</height>
|
||||
</rect>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QSpinBox" name="disarm_spinBox">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>1040</x>
|
||||
<y>120</y>
|
||||
<width>50</width>
|
||||
<height>22</height>
|
||||
</rect>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="control_console_label">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>840</x>
|
||||
<y>20</y>
|
||||
<width>200</width>
|
||||
<height>20</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string><html><head/><body><p><span style=" font-size:12pt; color:#c8c8c8;">Control console</span></p></body></html></string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QPushButton" name="turn_on_led_button">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>1140</x>
|
||||
<y>60</y>
|
||||
<width>100</width>
|
||||
<height>61</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true"/>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Turn on Leds</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QPushButton" name="turn_off_led_button">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>1140</x>
|
||||
<y>140</y>
|
||||
<width>100</width>
|
||||
<height>61</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Turn off Leds</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QPushButton" name="stop_swarm_but">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>220</x>
|
||||
<y>510</y>
|
||||
<width>141</width>
|
||||
<height>51</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true"/>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Stop swarm</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QPushButton" name="connect_button">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>620</x>
|
||||
<y>60</y>
|
||||
<width>111</width>
|
||||
<height>40</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true"/>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Connect</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QSpinBox" name="swarm_size_spinBox">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>260</x>
|
||||
<y>80</y>
|
||||
<width>50</width>
|
||||
<height>20</height>
|
||||
</rect>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="swarm_size_label">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>240</x>
|
||||
<y>50</y>
|
||||
<width>100</width>
|
||||
<height>20</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string><html><head/><body><p><span style=" font-size:9pt;">Swarm Size</span></p></body></html></string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="send_command_label">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>840</x>
|
||||
<y>260</y>
|
||||
<width>200</width>
|
||||
<height>20</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string><html><head/><body><p><span style=" font-size:12pt; color:#c8c8c8;">Send command</span></p></body></html></string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QTextEdit" name="console_textEdit">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>640</x>
|
||||
<y>290</y>
|
||||
<width>591</width>
|
||||
<height>271</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(1, 36, 86)</string>
|
||||
</property>
|
||||
<property name="html">
|
||||
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||||
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||||
p, li { white-space: pre-wrap; }
|
||||
</style></head><body style=" font-family:'Noto Sans'; font-size:9pt; font-weight:400; font-style:normal;">
|
||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'MS Shell Dlg 2'; font-size:7.8pt; color:#ffffff;">...</span></p></body></html></string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QPushButton" name="show_3d_scene_button">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>220</x>
|
||||
<y>300</y>
|
||||
<width>141</width>
|
||||
<height>51</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true"/>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Show 3d scene</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QPushButton" name="upload_animation_button">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>220</x>
|
||||
<y>370</y>
|
||||
<width>141</width>
|
||||
<height>51</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true"/>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Upload animation</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="state_label">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>220</x>
|
||||
<y>160</y>
|
||||
<width>131</width>
|
||||
<height>41</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">color: red
|
||||
|
||||
</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string><html><head/><body><p><span style=" font-size:12pt;">Disconnect</span></p></body></html></string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="statement_swarm_label">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>230</x>
|
||||
<y>140</y>
|
||||
<width>111</width>
|
||||
<height>20</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Statement swarm</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QPushButton" name="start_animation_button">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>220</x>
|
||||
<y>440</y>
|
||||
<width>141</width>
|
||||
<height>51</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true"/>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Start animation</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="back_label">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>-1</y>
|
||||
<width>1280</width>
|
||||
<height>701</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string><html><head/><body><p><img src=":/back/back.png"/></p></body></html></string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QPushButton" name="safty_button">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>620</x>
|
||||
<y>110</y>
|
||||
<width>111</width>
|
||||
<height>40</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true"/>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Safty check</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QPushButton" name="synch_button">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>620</x>
|
||||
<y>160</y>
|
||||
<width>111</width>
|
||||
<height>40</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true"/>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Synchronize</string>
|
||||
</property>
|
||||
</widget>
|
||||
<zorder>back_label</zorder>
|
||||
<zorder>take_off_button</zorder>
|
||||
<zorder>land_all_button</zorder>
|
||||
<zorder>disarm_all_button</zorder>
|
||||
<zorder>take_off_n_button</zorder>
|
||||
<zorder>land_n_button</zorder>
|
||||
<zorder>disarm_n_button</zorder>
|
||||
<zorder>take_off_spinBox</zorder>
|
||||
<zorder>land_spinBox</zorder>
|
||||
<zorder>disarm_spinBox</zorder>
|
||||
<zorder>control_console_label</zorder>
|
||||
<zorder>turn_on_led_button</zorder>
|
||||
<zorder>turn_off_led_button</zorder>
|
||||
<zorder>stop_swarm_but</zorder>
|
||||
<zorder>connect_button</zorder>
|
||||
<zorder>swarm_size_spinBox</zorder>
|
||||
<zorder>swarm_size_label</zorder>
|
||||
<zorder>send_command_label</zorder>
|
||||
<zorder>console_textEdit</zorder>
|
||||
<zorder>show_3d_scene_button</zorder>
|
||||
<zorder>upload_animation_button</zorder>
|
||||
<zorder>state_label</zorder>
|
||||
<zorder>statement_swarm_label</zorder>
|
||||
<zorder>start_animation_button</zorder>
|
||||
<zorder>safty_button</zorder>
|
||||
<zorder>synch_button</zorder>
|
||||
</widget>
|
||||
<widget class="QMenuBar" name="menubar">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>1280</width>
|
||||
<height>23</height>
|
||||
</rect>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QStatusBar" name="statusbar"/>
|
||||
</widget>
|
||||
<resources>
|
||||
<include location="back_1.qrc"/>
|
||||
</resources>
|
||||
<connections/>
|
||||
</ui>
|
||||
5
Server/gui/telem.qrc
Executable file
5
Server/gui/telem.qrc
Executable file
@@ -0,0 +1,5 @@
|
||||
<RCC>
|
||||
<qresource prefix="telem">
|
||||
<file>telem_bakground.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
BIN
Server/gui/telem_bakground.png
Executable file
BIN
Server/gui/telem_bakground.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 1.0 KiB |
536
Server/gui/telemetry.ui
Executable file
536
Server/gui/telemetry.ui
Executable file
@@ -0,0 +1,536 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>Dialog</class>
|
||||
<widget class="QDialog" name="Dialog">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>550</width>
|
||||
<height>240</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>550</width>
|
||||
<height>240</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>550</width>
|
||||
<height>240</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Telemetry</string>
|
||||
</property>
|
||||
<widget class="QLabel" name="copter_text">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>80</x>
|
||||
<y>20</y>
|
||||
<width>91</width>
|
||||
<height>20</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>11</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Copter</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QPushButton" name="go_pushButton">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>10</y>
|
||||
<width>93</width>
|
||||
<height>41</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Go</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QSpinBox" name="number_spinBox">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>160</x>
|
||||
<y>20</y>
|
||||
<width>42</width>
|
||||
<height>22</height>
|
||||
</rect>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="x_1">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>100</y>
|
||||
<width>21</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string><html><head/><body><p><span style=" color:#c8c8c8;">x=</span></p></body></html></string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="y_1">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>150</y>
|
||||
<width>21</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string><html><head/><body><p><span style=" color:#c8c8c8;">y=</span></p></body></html></string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="z_1">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>200</y>
|
||||
<width>21</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string><html><head/><body><p><span style=" color:#c8c8c8;">z=</span></p></body></html></string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="z_2">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>40</x>
|
||||
<y>200</y>
|
||||
<width>51</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string><html><head/><body><p><span style=" color:#c8c8c8;">0.000</span></p></body></html></string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="x_2">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>40</x>
|
||||
<y>100</y>
|
||||
<width>51</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string><html><head/><body><p><span style=" color:#c8c8c8;">0.000</span></p></body></html></string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="y_2">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>40</x>
|
||||
<y>150</y>
|
||||
<width>51</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string><html><head/><body><p><span style=" color:#c8c8c8;">0.000</span></p></body></html></string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="mode_2">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>470</x>
|
||||
<y>130</y>
|
||||
<width>71</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string><html><head/><body><p><span style=" color:#c8c8c8;">MANUALE</span></p></body></html></string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="armed_2">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>470</x>
|
||||
<y>100</y>
|
||||
<width>71</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string><html><head/><body><p><span style=" color:#c8c8c8;">False</span></p></body></html></string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="frame_id_1">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>400</x>
|
||||
<y>170</y>
|
||||
<width>61</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string><html><head/><body><p><span style=" color:#c8c8c8;">farme id=</span><br/></p></body></html></string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="armed_1">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>400</x>
|
||||
<y>100</y>
|
||||
<width>51</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string><html><head/><body><p><span style=" color:#c8c8c8;">armed=</span></p></body></html></string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="frame_id_2">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>470</x>
|
||||
<y>170</y>
|
||||
<width>71</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string><html><head/><body><p><span style=" color:#c8c8c8;">aruco_map</span></p></body></html></string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="mode_1">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>400</x>
|
||||
<y>130</y>
|
||||
<width>51</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string><html><head/><body><p><span style=" color:#c8c8c8;">mode=</span></p></body></html></string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="voltage_2">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>470</x>
|
||||
<y>200</y>
|
||||
<width>71</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string><html><head/><body><p><span style=" color:#c8c8c8;">0.000</span></p></body></html></string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="voltage_1">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>400</x>
|
||||
<y>200</y>
|
||||
<width>51</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string><html><head/><body><p><span style=" color:#c8c8c8;">voltage=</span></p></body></html></string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="roll_2">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>190</x>
|
||||
<y>200</y>
|
||||
<width>61</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string><html><head/><body><p><span style=" color:#c8c8c8;">0.000</span></p></body></html></string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="yaw_1">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>140</x>
|
||||
<y>100</y>
|
||||
<width>31</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string><html><head/><body><p><span style=" color:#c8c8c8;">yaw=</span></p></body></html></string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="pitch_1">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>140</x>
|
||||
<y>150</y>
|
||||
<width>41</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string><html><head/><body><p><span style=" color:#c8c8c8;">pitch=</span></p></body></html></string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="roll_1">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>140</x>
|
||||
<y>200</y>
|
||||
<width>31</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string><html><head/><body><p><span style=" color:#c8c8c8;">roll=</span></p></body></html></string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="pitch_2">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>190</x>
|
||||
<y>150</y>
|
||||
<width>61</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string><html><head/><body><p><span style=" color:#c8c8c8;">0.000</span></p></body></html></string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="yaw2">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>190</x>
|
||||
<y>100</y>
|
||||
<width>61</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string><html><head/><body><p><span style=" color:#c8c8c8;">0.000</span></p></body></html></string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="vy_1">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>270</x>
|
||||
<y>150</y>
|
||||
<width>31</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string><html><head/><body><p><span style=" color:#c8c8c8;">vy=</span></p></body></html></string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="vx_2">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>320</x>
|
||||
<y>100</y>
|
||||
<width>61</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string><html><head/><body><p><span style=" color:#c8c8c8;">0.000</span></p></body></html></string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="vz_1">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>270</x>
|
||||
<y>200</y>
|
||||
<width>31</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string><html><head/><body><p><span style=" color:#c8c8c8;">vz=</span></p></body></html></string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="vy_2">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>320</x>
|
||||
<y>150</y>
|
||||
<width>61</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string><html><head/><body><p><span style=" color:#c8c8c8;">0.000</span></p></body></html></string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="vz_2">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>320</x>
|
||||
<y>200</y>
|
||||
<width>61</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string><html><head/><body><p><span style=" color:#c8c8c8;">0.000</span></p></body></html></string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="vx_1">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>270</x>
|
||||
<y>100</y>
|
||||
<width>31</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string><html><head/><body><p><span style=" color:#c8c8c8;">vx=</span></p></body></html></string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="back">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>551</width>
|
||||
<height>241</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string><html><head/><body><p><img src=":/telem/telem_bakground.png"/></p></body></html></string>
|
||||
</property>
|
||||
</widget>
|
||||
<zorder>back</zorder>
|
||||
<zorder>copter_text</zorder>
|
||||
<zorder>go_pushButton</zorder>
|
||||
<zorder>number_spinBox</zorder>
|
||||
<zorder>x_1</zorder>
|
||||
<zorder>y_1</zorder>
|
||||
<zorder>z_1</zorder>
|
||||
<zorder>z_2</zorder>
|
||||
<zorder>x_2</zorder>
|
||||
<zorder>y_2</zorder>
|
||||
<zorder>mode_2</zorder>
|
||||
<zorder>armed_2</zorder>
|
||||
<zorder>frame_id_1</zorder>
|
||||
<zorder>armed_1</zorder>
|
||||
<zorder>frame_id_2</zorder>
|
||||
<zorder>mode_1</zorder>
|
||||
<zorder>voltage_2</zorder>
|
||||
<zorder>voltage_1</zorder>
|
||||
<zorder>roll_2</zorder>
|
||||
<zorder>yaw_1</zorder>
|
||||
<zorder>pitch_1</zorder>
|
||||
<zorder>roll_1</zorder>
|
||||
<zorder>pitch_2</zorder>
|
||||
<zorder>yaw2</zorder>
|
||||
<zorder>vy_1</zorder>
|
||||
<zorder>vx_2</zorder>
|
||||
<zorder>vz_1</zorder>
|
||||
<zorder>vy_2</zorder>
|
||||
<zorder>vz_2</zorder>
|
||||
<zorder>vx_1</zorder>
|
||||
</widget>
|
||||
<resources>
|
||||
<include location="telem.qrc"/>
|
||||
</resources>
|
||||
<connections/>
|
||||
</ui>
|
||||
214
Server/gui_telem.py
Normal file
214
Server/gui_telem.py
Normal file
@@ -0,0 +1,214 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Form implementation generated from reading ui file 'telemetry.ui'
|
||||
#
|
||||
# Created by: PyQt5 UI code generator 5.11.3
|
||||
#
|
||||
# WARNING! All changes made in this file will be lost!
|
||||
|
||||
from PyQt5 import QtCore, QtGui, QtWidgets
|
||||
|
||||
class Ui_Dialog(object):
|
||||
def setupUi(self, Dialog):
|
||||
Dialog.setObjectName("Dialog")
|
||||
Dialog.resize(550, 240)
|
||||
Dialog.setMinimumSize(QtCore.QSize(550, 240))
|
||||
Dialog.setMaximumSize(QtCore.QSize(550, 240))
|
||||
self.copter_text = QtWidgets.QLabel(Dialog)
|
||||
self.copter_text.setGeometry(QtCore.QRect(80, 20, 91, 20))
|
||||
font = QtGui.QFont()
|
||||
font.setPointSize(11)
|
||||
self.copter_text.setFont(font)
|
||||
self.copter_text.setAlignment(QtCore.Qt.AlignCenter)
|
||||
self.copter_text.setObjectName("copter_text")
|
||||
self.go_pushButton = QtWidgets.QPushButton(Dialog)
|
||||
self.go_pushButton.setGeometry(QtCore.QRect(10, 10, 93, 41))
|
||||
self.go_pushButton.setObjectName("go_pushButton")
|
||||
self.number_spinBox = QtWidgets.QSpinBox(Dialog)
|
||||
self.number_spinBox.setGeometry(QtCore.QRect(160, 20, 42, 22))
|
||||
self.number_spinBox.setObjectName("number_spinBox")
|
||||
self.x_1 = QtWidgets.QLabel(Dialog)
|
||||
self.x_1.setGeometry(QtCore.QRect(10, 100, 21, 16))
|
||||
self.x_1.setAlignment(QtCore.Qt.AlignCenter)
|
||||
self.x_1.setObjectName("x_1")
|
||||
self.y_1 = QtWidgets.QLabel(Dialog)
|
||||
self.y_1.setGeometry(QtCore.QRect(10, 150, 21, 16))
|
||||
self.y_1.setAlignment(QtCore.Qt.AlignCenter)
|
||||
self.y_1.setObjectName("y_1")
|
||||
self.z_1 = QtWidgets.QLabel(Dialog)
|
||||
self.z_1.setGeometry(QtCore.QRect(10, 200, 21, 16))
|
||||
self.z_1.setAlignment(QtCore.Qt.AlignCenter)
|
||||
self.z_1.setObjectName("z_1")
|
||||
self.z_2 = QtWidgets.QLabel(Dialog)
|
||||
self.z_2.setGeometry(QtCore.QRect(40, 200, 51, 16))
|
||||
self.z_2.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
|
||||
self.z_2.setObjectName("z_2")
|
||||
self.x_2 = QtWidgets.QLabel(Dialog)
|
||||
self.x_2.setGeometry(QtCore.QRect(40, 100, 51, 16))
|
||||
self.x_2.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
|
||||
self.x_2.setObjectName("x_2")
|
||||
self.y_2 = QtWidgets.QLabel(Dialog)
|
||||
self.y_2.setGeometry(QtCore.QRect(40, 150, 51, 16))
|
||||
self.y_2.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
|
||||
self.y_2.setObjectName("y_2")
|
||||
self.mode_2 = QtWidgets.QLabel(Dialog)
|
||||
self.mode_2.setGeometry(QtCore.QRect(470, 130, 71, 16))
|
||||
self.mode_2.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
|
||||
self.mode_2.setObjectName("mode_2")
|
||||
self.armed_2 = QtWidgets.QLabel(Dialog)
|
||||
self.armed_2.setGeometry(QtCore.QRect(470, 100, 71, 16))
|
||||
self.armed_2.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
|
||||
self.armed_2.setObjectName("armed_2")
|
||||
self.frame_id_1 = QtWidgets.QLabel(Dialog)
|
||||
self.frame_id_1.setGeometry(QtCore.QRect(400, 170, 61, 16))
|
||||
self.frame_id_1.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
|
||||
self.frame_id_1.setObjectName("frame_id_1")
|
||||
self.armed_1 = QtWidgets.QLabel(Dialog)
|
||||
self.armed_1.setGeometry(QtCore.QRect(400, 100, 51, 16))
|
||||
self.armed_1.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
|
||||
self.armed_1.setObjectName("armed_1")
|
||||
self.frame_id_2 = QtWidgets.QLabel(Dialog)
|
||||
self.frame_id_2.setGeometry(QtCore.QRect(470, 170, 71, 16))
|
||||
self.frame_id_2.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
|
||||
self.frame_id_2.setObjectName("frame_id_2")
|
||||
self.mode_1 = QtWidgets.QLabel(Dialog)
|
||||
self.mode_1.setGeometry(QtCore.QRect(400, 130, 51, 16))
|
||||
self.mode_1.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
|
||||
self.mode_1.setObjectName("mode_1")
|
||||
self.voltage_2 = QtWidgets.QLabel(Dialog)
|
||||
self.voltage_2.setGeometry(QtCore.QRect(470, 200, 71, 16))
|
||||
self.voltage_2.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
|
||||
self.voltage_2.setObjectName("voltage_2")
|
||||
self.voltage_1 = QtWidgets.QLabel(Dialog)
|
||||
self.voltage_1.setGeometry(QtCore.QRect(400, 200, 51, 16))
|
||||
self.voltage_1.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
|
||||
self.voltage_1.setObjectName("voltage_1")
|
||||
self.roll_2 = QtWidgets.QLabel(Dialog)
|
||||
self.roll_2.setGeometry(QtCore.QRect(190, 200, 61, 16))
|
||||
self.roll_2.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
|
||||
self.roll_2.setObjectName("roll_2")
|
||||
self.yaw_1 = QtWidgets.QLabel(Dialog)
|
||||
self.yaw_1.setGeometry(QtCore.QRect(140, 100, 31, 16))
|
||||
self.yaw_1.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
|
||||
self.yaw_1.setObjectName("yaw_1")
|
||||
self.pitch_1 = QtWidgets.QLabel(Dialog)
|
||||
self.pitch_1.setGeometry(QtCore.QRect(140, 150, 41, 16))
|
||||
self.pitch_1.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
|
||||
self.pitch_1.setObjectName("pitch_1")
|
||||
self.roll_1 = QtWidgets.QLabel(Dialog)
|
||||
self.roll_1.setGeometry(QtCore.QRect(140, 200, 31, 16))
|
||||
self.roll_1.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
|
||||
self.roll_1.setObjectName("roll_1")
|
||||
self.pitch_2 = QtWidgets.QLabel(Dialog)
|
||||
self.pitch_2.setGeometry(QtCore.QRect(190, 150, 61, 16))
|
||||
self.pitch_2.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
|
||||
self.pitch_2.setObjectName("pitch_2")
|
||||
self.yaw2 = QtWidgets.QLabel(Dialog)
|
||||
self.yaw2.setGeometry(QtCore.QRect(190, 100, 61, 16))
|
||||
self.yaw2.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
|
||||
self.yaw2.setObjectName("yaw2")
|
||||
self.vy_1 = QtWidgets.QLabel(Dialog)
|
||||
self.vy_1.setGeometry(QtCore.QRect(270, 150, 31, 16))
|
||||
self.vy_1.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
|
||||
self.vy_1.setObjectName("vy_1")
|
||||
self.vx_2 = QtWidgets.QLabel(Dialog)
|
||||
self.vx_2.setGeometry(QtCore.QRect(320, 100, 61, 16))
|
||||
self.vx_2.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
|
||||
self.vx_2.setObjectName("vx_2")
|
||||
self.vz_1 = QtWidgets.QLabel(Dialog)
|
||||
self.vz_1.setGeometry(QtCore.QRect(270, 200, 31, 16))
|
||||
self.vz_1.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
|
||||
self.vz_1.setObjectName("vz_1")
|
||||
self.vy_2 = QtWidgets.QLabel(Dialog)
|
||||
self.vy_2.setGeometry(QtCore.QRect(320, 150, 61, 16))
|
||||
self.vy_2.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
|
||||
self.vy_2.setObjectName("vy_2")
|
||||
self.vz_2 = QtWidgets.QLabel(Dialog)
|
||||
self.vz_2.setGeometry(QtCore.QRect(320, 200, 61, 16))
|
||||
self.vz_2.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
|
||||
self.vz_2.setObjectName("vz_2")
|
||||
self.vx_1 = QtWidgets.QLabel(Dialog)
|
||||
self.vx_1.setGeometry(QtCore.QRect(270, 100, 31, 16))
|
||||
self.vx_1.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
|
||||
self.vx_1.setObjectName("vx_1")
|
||||
self.back = QtWidgets.QLabel(Dialog)
|
||||
self.back.setGeometry(QtCore.QRect(0, 0, 551, 241))
|
||||
self.back.setObjectName("back")
|
||||
self.back.raise_()
|
||||
self.copter_text.raise_()
|
||||
self.go_pushButton.raise_()
|
||||
self.number_spinBox.raise_()
|
||||
self.x_1.raise_()
|
||||
self.y_1.raise_()
|
||||
self.z_1.raise_()
|
||||
self.z_2.raise_()
|
||||
self.x_2.raise_()
|
||||
self.y_2.raise_()
|
||||
self.mode_2.raise_()
|
||||
self.armed_2.raise_()
|
||||
self.frame_id_1.raise_()
|
||||
self.armed_1.raise_()
|
||||
self.frame_id_2.raise_()
|
||||
self.mode_1.raise_()
|
||||
self.voltage_2.raise_()
|
||||
self.voltage_1.raise_()
|
||||
self.roll_2.raise_()
|
||||
self.yaw_1.raise_()
|
||||
self.pitch_1.raise_()
|
||||
self.roll_1.raise_()
|
||||
self.pitch_2.raise_()
|
||||
self.yaw2.raise_()
|
||||
self.vy_1.raise_()
|
||||
self.vx_2.raise_()
|
||||
self.vz_1.raise_()
|
||||
self.vy_2.raise_()
|
||||
self.vz_2.raise_()
|
||||
self.vx_1.raise_()
|
||||
|
||||
self.retranslateUi(Dialog)
|
||||
QtCore.QMetaObject.connectSlotsByName(Dialog)
|
||||
|
||||
def retranslateUi(self, Dialog):
|
||||
_translate = QtCore.QCoreApplication.translate
|
||||
Dialog.setWindowTitle(_translate("Dialog", "Telemetry"))
|
||||
self.copter_text.setText(_translate("Dialog", "Copter"))
|
||||
self.go_pushButton.setText(_translate("Dialog", "Go"))
|
||||
self.x_1.setText(_translate("Dialog", "<html><head/><body><p><span style=\" color:#c8c8c8;\">x=</span></p></body></html>"))
|
||||
self.y_1.setText(_translate("Dialog", "<html><head/><body><p><span style=\" color:#c8c8c8;\">y=</span></p></body></html>"))
|
||||
self.z_1.setText(_translate("Dialog", "<html><head/><body><p><span style=\" color:#c8c8c8;\">z=</span></p></body></html>"))
|
||||
self.z_2.setText(_translate("Dialog", "<html><head/><body><p><span style=\" color:#c8c8c8;\">0.000</span></p></body></html>"))
|
||||
self.x_2.setText(_translate("Dialog", "<html><head/><body><p><span style=\" color:#c8c8c8;\">0.000</span></p></body></html>"))
|
||||
self.y_2.setText(_translate("Dialog", "<html><head/><body><p><span style=\" color:#c8c8c8;\">0.000</span></p></body></html>"))
|
||||
self.mode_2.setText(_translate("Dialog", "<html><head/><body><p><span style=\" color:#c8c8c8;\">MANUALE</span></p></body></html>"))
|
||||
self.armed_2.setText(_translate("Dialog", "<html><head/><body><p><span style=\" color:#c8c8c8;\">False</span></p></body></html>"))
|
||||
self.frame_id_1.setText(_translate("Dialog", "<html><head/><body><p><span style=\" color:#c8c8c8;\">farme id=</span><br/></p></body></html>"))
|
||||
self.armed_1.setText(_translate("Dialog", "<html><head/><body><p><span style=\" color:#c8c8c8;\">armed=</span></p></body></html>"))
|
||||
self.frame_id_2.setText(_translate("Dialog", "<html><head/><body><p><span style=\" color:#c8c8c8;\">aruco_map</span></p></body></html>"))
|
||||
self.mode_1.setText(_translate("Dialog", "<html><head/><body><p><span style=\" color:#c8c8c8;\">mode=</span></p></body></html>"))
|
||||
self.voltage_2.setText(_translate("Dialog", "<html><head/><body><p><span style=\" color:#c8c8c8;\">0.000</span></p></body></html>"))
|
||||
self.voltage_1.setText(_translate("Dialog", "<html><head/><body><p><span style=\" color:#c8c8c8;\">voltage=</span></p></body></html>"))
|
||||
self.roll_2.setText(_translate("Dialog", "<html><head/><body><p><span style=\" color:#c8c8c8;\">0.000</span></p></body></html>"))
|
||||
self.yaw_1.setText(_translate("Dialog", "<html><head/><body><p><span style=\" color:#c8c8c8;\">yaw=</span></p></body></html>"))
|
||||
self.pitch_1.setText(_translate("Dialog", "<html><head/><body><p><span style=\" color:#c8c8c8;\">pitch=</span></p></body></html>"))
|
||||
self.roll_1.setText(_translate("Dialog", "<html><head/><body><p><span style=\" color:#c8c8c8;\">roll=</span></p></body></html>"))
|
||||
self.pitch_2.setText(_translate("Dialog", "<html><head/><body><p><span style=\" color:#c8c8c8;\">0.000</span></p></body></html>"))
|
||||
self.yaw2.setText(_translate("Dialog", "<html><head/><body><p><span style=\" color:#c8c8c8;\">0.000</span></p></body></html>"))
|
||||
self.vy_1.setText(_translate("Dialog", "<html><head/><body><p><span style=\" color:#c8c8c8;\">vy=</span></p></body></html>"))
|
||||
self.vx_2.setText(_translate("Dialog", "<html><head/><body><p><span style=\" color:#c8c8c8;\">0.000</span></p></body></html>"))
|
||||
self.vz_1.setText(_translate("Dialog", "<html><head/><body><p><span style=\" color:#c8c8c8;\">vz=</span></p></body></html>"))
|
||||
self.vy_2.setText(_translate("Dialog", "<html><head/><body><p><span style=\" color:#c8c8c8;\">0.000</span></p></body></html>"))
|
||||
self.vz_2.setText(_translate("Dialog", "<html><head/><body><p><span style=\" color:#c8c8c8;\">0.000</span></p></body></html>"))
|
||||
self.vx_1.setText(_translate("Dialog", "<html><head/><body><p><span style=\" color:#c8c8c8;\">vx=</span></p></body></html>"))
|
||||
self.back.setText(_translate("Dialog", "<html><head/><body><p><img src=\":/telem/telem_bakground.png\"/></p></body></html>"))
|
||||
|
||||
import telem_rc
|
||||
|
||||
if __name__ == "__main__":
|
||||
import sys
|
||||
app = QtWidgets.QApplication(sys.argv)
|
||||
Dialog = QtWidgets.QDialog()
|
||||
ui = Ui_Dialog()
|
||||
ui.setupUi(Dialog)
|
||||
Dialog.show()
|
||||
sys.exit(app.exec_())
|
||||
|
||||
72
Server/telem_rc.py
Normal file
72
Server/telem_rc.py
Normal file
@@ -0,0 +1,72 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Resource object code
|
||||
#
|
||||
# Created by: The Resource Compiler for PyQt5 (Qt v5.11.2)
|
||||
#
|
||||
# WARNING! All changes made in this file will be lost!
|
||||
|
||||
from PyQt5 import QtCore
|
||||
|
||||
qt_resource_data = b"\
|
||||
\x00\x00\x00\xe4\
|
||||
\x00\
|
||||
\x00\x04\x03\x78\x9c\xeb\x0c\xf0\x73\xe7\xe5\x92\xe2\x62\x60\x60\
|
||||
\xe0\xf5\xf4\x70\x09\x62\x60\x60\x52\x03\xb2\x3f\x70\x30\x01\xc9\
|
||||
\xdd\x21\x16\x20\x09\xc6\xe2\x20\x77\x27\x86\x75\xe7\x64\x5e\x02\
|
||||
\x39\x2c\xe9\x8e\xbe\x8e\x0c\x0c\x1b\xfb\xb9\xff\x24\xb2\x02\xf9\
|
||||
\x9c\x05\x1e\x91\xc5\x0c\x0c\x7c\x87\x41\x98\xf1\x78\xfe\x8a\x14\
|
||||
\x06\x06\xe6\x19\x9e\x2e\x8e\x21\x15\x71\x6f\x6f\x6d\x14\x3c\xac\
|
||||
\x20\xc0\xe0\xf8\x44\x4b\x73\xa2\x5d\xc6\x99\xc6\x2b\x4c\xe9\x67\
|
||||
\x2b\xcc\x1f\x3e\xfe\xff\x40\x68\xdd\xde\xef\x0c\x0d\x9f\xed\xce\
|
||||
\x73\x33\xb4\x7b\xf2\x31\x08\x9e\x64\x54\x50\xb2\x64\x70\x51\x61\
|
||||
\x6f\xe8\x78\xc2\x20\x30\x51\x86\x41\x69\x12\xb3\x83\x4b\x11\x43\
|
||||
\x87\xc7\xa0\x96\x64\x00\x81\x07\x7b\xd7\x59\x3e\x37\x2e\xba\x17\
|
||||
\xf5\x5a\x6e\xcd\x5f\xde\x39\x8f\xdb\x75\xfe\xdb\xff\xb4\x63\x18\
|
||||
\x1c\x2e\x1c\x95\x1c\x95\x84\x4a\x1e\x91\x88\x2f\xac\xe3\xd3\xe2\
|
||||
\x4e\x09\x0d\x01\x25\x5b\x4f\x57\x3f\x97\x75\x4e\x09\x4d\x00\xf2\
|
||||
\xc3\x05\x01\
|
||||
"
|
||||
|
||||
qt_resource_name = b"\
|
||||
\x00\x05\
|
||||
\x00\x7a\xc2\xbd\
|
||||
\x00\x74\
|
||||
\x00\x65\x00\x6c\x00\x65\x00\x6d\
|
||||
\x00\x13\
|
||||
\x08\x4f\x8b\x27\
|
||||
\x00\x74\
|
||||
\x00\x65\x00\x6c\x00\x65\x00\x6d\x00\x5f\x00\x62\x00\x61\x00\x6b\x00\x67\x00\x72\x00\x6f\x00\x75\x00\x6e\x00\x64\x00\x2e\x00\x70\
|
||||
\x00\x6e\x00\x67\
|
||||
"
|
||||
|
||||
qt_resource_struct_v1 = b"\
|
||||
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x01\
|
||||
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x02\
|
||||
\x00\x00\x00\x10\x00\x01\x00\x00\x00\x01\x00\x00\x00\x00\
|
||||
"
|
||||
|
||||
qt_resource_struct_v2 = b"\
|
||||
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x01\
|
||||
\x00\x00\x00\x00\x00\x00\x00\x00\
|
||||
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x02\
|
||||
\x00\x00\x00\x00\x00\x00\x00\x00\
|
||||
\x00\x00\x00\x10\x00\x01\x00\x00\x00\x01\x00\x00\x00\x00\
|
||||
\x00\x00\x01\x64\xac\x7c\x9c\xca\
|
||||
"
|
||||
|
||||
qt_version = [int(v) for v in QtCore.qVersion().split('.')]
|
||||
if qt_version < [5, 8, 0]:
|
||||
rcc_version = 1
|
||||
qt_resource_struct = qt_resource_struct_v1
|
||||
else:
|
||||
rcc_version = 2
|
||||
qt_resource_struct = qt_resource_struct_v2
|
||||
|
||||
def qInitResources():
|
||||
QtCore.qRegisterResourceData(rcc_version, qt_resource_struct, qt_resource_name, qt_resource_data)
|
||||
|
||||
def qCleanupResources():
|
||||
QtCore.qUnregisterResourceData(rcc_version, qt_resource_struct, qt_resource_name, qt_resource_data)
|
||||
|
||||
qInitResources()
|
||||
Reference in New Issue
Block a user