航线属性修改,添加地面站ID

This commit is contained in:
hm
2020-11-21 18:19:28 +08:00
parent a41f3e3060
commit 4254a1f256
43 changed files with 2531 additions and 1512 deletions
+87 -48
View File
@@ -38,6 +38,10 @@ Diagram::Diagram(QWidget *parent) :
attChart->setRubberBand(QChartView::RectangleRubberBand);
gyroChart->setRubberBand(QChartView::RectangleRubberBand);
accChart->setRubberBand(QChartView::RectangleRubberBand);
}
@@ -522,32 +526,45 @@ void Diagram::setAttitude(uint8_t source,
{
if(ui->checkBox_INS->isChecked())
{
accChart->setSerieData(tr("INS ax"),ax);
accChart->setSerieData(tr("INS ay"),ay);
accChart->setSerieData(tr("INS az"),az);
accChart->setSerieData(tr("I ax"),ax);
accChart->setSerieData(tr("I ay"),ay);
accChart->setSerieData(tr("I az"),az);
gyroChart->setSerieData(tr("INS p"),p);
gyroChart->setSerieData(tr("INS q"),q);
gyroChart->setSerieData(tr("INS r"),r);
gyroChart->setSerieData(tr("I p"),p);
gyroChart->setSerieData(tr("I q"),q);
gyroChart->setSerieData(tr("I r"),r);
attChart->setSerieData(tr("INS roll"),rol);
attChart->setSerieData(tr("INS pitch"),pit);
attChart->setSerieData(tr("I roll"),rol);
attChart->setSerieData(tr("I pitch"),pit);
}
}break;
case 2:
{
if(ui->checkBox_SBG->isChecked())
{
accChart->setSerieData(tr("SBG ax"),ax);
accChart->setSerieData(tr("SBG ay"),ay);
accChart->setSerieData(tr("SBG az"),az);
accChart->setSerieData(tr("S ax"),ax);
accChart->setSerieData(tr("S ay"),ay);
accChart->setSerieData(tr("S az"),az);
gyroChart->setSerieData(tr("SBG p"),p);
gyroChart->setSerieData(tr("SBG q"),q);
gyroChart->setSerieData(tr("SBG r"),r);
gyroChart->setSerieData(tr("S p"),p);
gyroChart->setSerieData(tr("S q"),q);
gyroChart->setSerieData(tr("S r"),r);
attChart->setSerieData(tr("SBG roll"),rol);
attChart->setSerieData(tr("SBG pitch"),pit);
attChart->setSerieData(tr("S roll"),rol);
attChart->setSerieData(tr("S pitch"),pit);
}
}break;
case 3:
{
if(ui->checkBox_USE->isChecked())
{
gyroChart->setSerieData(tr("p"),p);
gyroChart->setSerieData(tr("q"),q);
gyroChart->setSerieData(tr("r"),r);
attChart->setSerieData(tr("roll"),rol);
attChart->setSerieData(tr("pitch"),pit);
}
}break;
@@ -560,29 +577,29 @@ void Diagram::on_checkBox_INS_stateChanged(int arg1)
{
if(arg1 == Qt::Checked)
{
attChart->addSeries(tr("INS roll"),Qt::darkRed,Qt::SolidLine);
attChart->addSeries(tr("INS pitch"),Qt::darkGreen,Qt::SolidLine);
attChart->addSeries(tr("I roll"),Qt::darkRed,Qt::SolidLine);
attChart->addSeries(tr("I pitch"),Qt::darkGreen,Qt::SolidLine);
gyroChart->addSeries(tr("INS p"),Qt::darkRed,Qt::SolidLine);
gyroChart->addSeries(tr("INS q"),Qt::darkGreen,Qt::SolidLine);
gyroChart->addSeries(tr("INS r"),Qt::darkBlue,Qt::SolidLine);
gyroChart->addSeries(tr("I p"),Qt::darkRed,Qt::SolidLine);
gyroChart->addSeries(tr("I q"),Qt::darkGreen,Qt::SolidLine);
gyroChart->addSeries(tr("I r"),Qt::darkBlue,Qt::SolidLine);
accChart->addSeries(tr("INS ax"),Qt::darkRed,Qt::SolidLine);
accChart->addSeries(tr("INS ay"),Qt::darkGreen,Qt::SolidLine);
accChart->addSeries(tr("INS az"),Qt::darkBlue,Qt::SolidLine);
accChart->addSeries(tr("I ax"),Qt::darkRed,Qt::SolidLine);
accChart->addSeries(tr("I ay"),Qt::darkGreen,Qt::SolidLine);
accChart->addSeries(tr("I az"),Qt::darkBlue,Qt::SolidLine);
}
else if(arg1 == Qt::Unchecked)
{
attChart->removeSerie(tr("INS roll"));
attChart->removeSerie(tr("INS pitch"));
attChart->removeSerie(tr("I roll"));
attChart->removeSerie(tr("I pitch"));
gyroChart->removeSerie(tr("INS p"));
gyroChart->removeSerie(tr("INS q"));
gyroChart->removeSerie(tr("INS r"));
gyroChart->removeSerie(tr("I p"));
gyroChart->removeSerie(tr("I q"));
gyroChart->removeSerie(tr("I r"));
accChart->removeSerie(tr("INS ax"));
accChart->removeSerie(tr("INS ay"));
accChart->removeSerie(tr("INS az"));
accChart->removeSerie(tr("I ax"));
accChart->removeSerie(tr("I ay"));
accChart->removeSerie(tr("I az"));
}
}
@@ -590,28 +607,50 @@ void Diagram::on_checkBox_SBG_stateChanged(int arg1)
{
if(arg1 == Qt::Checked)
{
attChart->addSeries(tr("SBG roll"),Qt::red,Qt::DashLine);
attChart->addSeries(tr("SBG pitch"),Qt::green,Qt::DashLine);
attChart->addSeries(tr("S roll"),Qt::red,Qt::DashLine);
attChart->addSeries(tr("S pitch"),Qt::green,Qt::DashLine);
gyroChart->addSeries(tr("SBG p"),Qt::red,Qt::DashLine);
gyroChart->addSeries(tr("SBG q"),Qt::green,Qt::DashLine);
gyroChart->addSeries(tr("SBG r"),Qt::blue,Qt::DashLine);
gyroChart->addSeries(tr("S p"),Qt::red,Qt::DashLine);
gyroChart->addSeries(tr("S q"),Qt::green,Qt::DashLine);
gyroChart->addSeries(tr("S r"),Qt::blue,Qt::DashLine);
accChart->addSeries(tr("SBG ax"),Qt::red,Qt::DashLine);
accChart->addSeries(tr("SBG ay"),Qt::green,Qt::DashLine);
accChart->addSeries(tr("SBG az"),Qt::blue,Qt::DashLine);
accChart->addSeries(tr("S ax"),Qt::red,Qt::DashLine);
accChart->addSeries(tr("S ay"),Qt::green,Qt::DashLine);
accChart->addSeries(tr("S az"),Qt::blue,Qt::DashLine);
}
else if(arg1 == Qt::Unchecked)
{
attChart->removeSerie(tr("SBG roll"));
attChart->removeSerie(tr("SBG pitch"));
attChart->removeSerie(tr("S roll"));
attChart->removeSerie(tr("S pitch"));
gyroChart->removeSerie(tr("SBG p"));
gyroChart->removeSerie(tr("SBG q"));
gyroChart->removeSerie(tr("SBG r"));
gyroChart->removeSerie(tr("S p"));
gyroChart->removeSerie(tr("S q"));
gyroChart->removeSerie(tr("S r"));
accChart->removeSerie(tr("SBG ax"));
accChart->removeSerie(tr("SBG ay"));
accChart->removeSerie(tr("SBG az"));
accChart->removeSerie(tr("S ax"));
accChart->removeSerie(tr("S ay"));
accChart->removeSerie(tr("S az"));
}
}
void Diagram::on_checkBox_USE_stateChanged(int arg1)
{
if(arg1 == Qt::Checked)
{
attChart->addSeries(tr("roll"),Qt::red,Qt::DashLine);
attChart->addSeries(tr("pitch"),Qt::green,Qt::DashLine);
gyroChart->addSeries(tr("p"),Qt::red,Qt::DashLine);
gyroChart->addSeries(tr("q"),Qt::green,Qt::DashLine);
gyroChart->addSeries(tr("r"),Qt::blue,Qt::DashLine);
}
else if(arg1 == Qt::Unchecked)
{
attChart->removeSerie(tr("roll"));
attChart->removeSerie(tr("pitch"));
gyroChart->removeSerie(tr("p"));
gyroChart->removeSerie(tr("q"));
gyroChart->removeSerie(tr("r"));
}
}
+2
View File
@@ -90,6 +90,8 @@ private slots:
void on_checkBox_SBG_stateChanged(int arg1);
void on_checkBox_USE_stateChanged(int arg1);
private:
Ui::Diagram *ui;
QWidget *m_parent;
+202 -174
View File
@@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>989</width>
<height>564</height>
<height>588</height>
</rect>
</property>
<property name="windowTitle">
@@ -70,34 +70,7 @@
<property name="spacing">
<number>12</number>
</property>
<item row="1" column="1">
<widget class="QLabel" name="label_6">
<property name="text">
<string>攻角[°]</string>
</property>
</widget>
</item>
<item row="9" column="1">
<widget class="QLabel" name="label_36">
<property name="text">
<string>地速[m/s]</string>
</property>
</widget>
</item>
<item row="4" column="2">
<widget class="QLabel" name="label_measure_pitch">
<property name="styleSheet">
<string notr="true">background-color: rgb(189, 189, 189);</string>
</property>
<property name="text">
<string>0</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item row="7" column="2">
<item row="8" column="2">
<widget class="QLabel" name="label_measure_tas">
<property name="styleSheet">
<string notr="true">background-color: rgb(189, 189, 189);</string>
@@ -110,8 +83,8 @@
</property>
</widget>
</item>
<item row="6" column="2">
<widget class="QLabel" name="label_measure_altitude">
<item row="13" column="2">
<widget class="QLabel" name="label_measure_vrate">
<property name="styleSheet">
<string notr="true">background-color: rgb(189, 189, 189);</string>
</property>
@@ -123,60 +96,8 @@
</property>
</widget>
</item>
<item row="5" column="1">
<widget class="QLabel" name="label_15">
<property name="text">
<string>航迹角[°]</string>
</property>
</widget>
</item>
<item row="11" column="1">
<widget class="QLabel" name="label_33">
<property name="text">
<string>爬升率[m/s]</string>
</property>
</widget>
</item>
<item row="7" column="3">
<widget class="QLabel" name="label_target_tas">
<property name="styleSheet">
<string notr="true">background-color: rgb(189, 189, 189);</string>
</property>
<property name="text">
<string>0</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item row="1" column="2">
<widget class="QLabel" name="label_measure_atteck">
<property name="minimumSize">
<size>
<width>100</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>100</width>
<height>16777215</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(189, 189, 189);</string>
</property>
<property name="text">
<string>0</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item row="6" column="3">
<widget class="QLabel" name="label_target_altitude">
<item row="10" column="2">
<widget class="QLabel" name="label_measure_gs">
<property name="styleSheet">
<string notr="true">background-color: rgb(189, 189, 189);</string>
</property>
@@ -201,13 +122,20 @@
</property>
</widget>
</item>
<item row="9" column="2">
<widget class="QLabel" name="label_measure_gs">
<property name="styleSheet">
<string notr="true">background-color: rgb(189, 189, 189);</string>
</property>
<item row="0" column="3">
<widget class="QLabel" name="label_3">
<property name="text">
<string>0</string>
<string>指令</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item row="0" column="2">
<widget class="QLabel" name="label_2">
<property name="text">
<string>实测</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
@@ -227,6 +155,67 @@
</property>
</widget>
</item>
<item row="8" column="3">
<widget class="QLabel" name="label_target_tas">
<property name="styleSheet">
<string notr="true">background-color: rgb(189, 189, 189);</string>
</property>
<property name="text">
<string>0</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item row="13" column="1">
<widget class="QLabel" name="label_33">
<property name="text">
<string>爬升率[m/s]</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QLabel" name="label_6">
<property name="text">
<string>攻角[°]</string>
</property>
</widget>
</item>
<item row="12" column="2">
<widget class="QLabel" name="label_measure_ma">
<property name="styleSheet">
<string notr="true">background-color: rgb(189, 189, 189);</string>
</property>
<property name="text">
<string>0</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item row="12" column="1">
<widget class="QLabel" name="label_30">
<property name="text">
<string>马赫数[Ma]</string>
</property>
</widget>
</item>
<item row="6" column="1">
<widget class="QLabel" name="label_21">
<property name="text">
<string>海拔[m]</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QLabel" name="label">
<property name="text">
<string>侧滑角[°]</string>
</property>
</widget>
</item>
<item row="2" column="2">
<widget class="QLabel" name="label_measure_slide">
<property name="styleSheet">
@@ -240,73 +229,13 @@
</property>
</widget>
</item>
<item row="7" column="1">
<item row="8" column="1">
<widget class="QLabel" name="label_27">
<property name="text">
<string>真空速[m/s]</string>
</property>
</widget>
</item>
<item row="8" column="1">
<widget class="QLabel" name="label_24">
<property name="text">
<string>表速[m/s]</string>
</property>
</widget>
</item>
<item row="5" column="3">
<widget class="QLabel" name="label_target_heading">
<property name="styleSheet">
<string notr="true">background-color: rgb(189, 189, 189);</string>
</property>
<property name="text">
<string>0</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QLabel" name="label">
<property name="text">
<string>侧滑角[°]</string>
</property>
</widget>
</item>
<item row="4" column="1">
<widget class="QLabel" name="label_9">
<property name="text">
<string>俯仰角[°]</string>
</property>
</widget>
</item>
<item row="10" column="2">
<widget class="QLabel" name="label_measure_ma">
<property name="styleSheet">
<string notr="true">background-color: rgb(189, 189, 189);</string>
</property>
<property name="text">
<string>0</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item row="11" column="2">
<widget class="QLabel" name="label_measure_vrate">
<property name="styleSheet">
<string notr="true">background-color: rgb(189, 189, 189);</string>
</property>
<property name="text">
<string>0</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item row="3" column="2">
<widget class="QLabel" name="label_measure_roll">
<property name="styleSheet">
@@ -320,6 +249,27 @@
</property>
</widget>
</item>
<item row="10" column="1">
<widget class="QLabel" name="label_36">
<property name="text">
<string>地速[m/s]</string>
</property>
</widget>
</item>
<item row="4" column="1">
<widget class="QLabel" name="label_9">
<property name="text">
<string>俯仰角[°]</string>
</property>
</widget>
</item>
<item row="5" column="1">
<widget class="QLabel" name="label_15">
<property name="text">
<string>航迹角[°]</string>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QLabel" name="label_12">
<property name="text">
@@ -327,22 +277,21 @@
</property>
</widget>
</item>
<item row="6" column="1">
<widget class="QLabel" name="label_21">
<item row="6" column="2">
<widget class="QLabel" name="label_measure_altitude">
<property name="styleSheet">
<string notr="true">background-color: rgb(189, 189, 189);</string>
</property>
<property name="text">
<string>海拔[m]</string>
<string>0</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item row="10" column="1">
<widget class="QLabel" name="label_30">
<property name="text">
<string>马赫数[Ma]</string>
</property>
</widget>
</item>
<item row="8" column="2">
<widget class="QLabel" name="label_measure_cas">
<item row="6" column="3">
<widget class="QLabel" name="label_target_altitude">
<property name="styleSheet">
<string notr="true">background-color: rgb(189, 189, 189);</string>
</property>
@@ -379,20 +328,71 @@
</property>
</widget>
</item>
<item row="0" column="2">
<widget class="QLabel" name="label_2">
<item row="4" column="2">
<widget class="QLabel" name="label_measure_pitch">
<property name="styleSheet">
<string notr="true">background-color: rgb(189, 189, 189);</string>
</property>
<property name="text">
<string>实测</string>
<string>0</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item row="0" column="3">
<widget class="QLabel" name="label_3">
<item row="1" column="2">
<widget class="QLabel" name="label_measure_atteck">
<property name="minimumSize">
<size>
<width>100</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>100</width>
<height>16777215</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(189, 189, 189);</string>
</property>
<property name="text">
<string>指令</string>
<string>0</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item row="5" column="3">
<widget class="QLabel" name="label_target_heading">
<property name="styleSheet">
<string notr="true">background-color: rgb(189, 189, 189);</string>
</property>
<property name="text">
<string>0</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item row="7" column="1">
<widget class="QLabel" name="label_24">
<property name="text">
<string>表速[m/s]</string>
</property>
</widget>
</item>
<item row="7" column="2">
<widget class="QLabel" name="label_measure_cas">
<property name="styleSheet">
<string notr="true">background-color: rgb(189, 189, 189);</string>
</property>
<property name="text">
<string>0</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
@@ -613,17 +613,45 @@
<property name="spacing">
<number>12</number>
</property>
<item row="0" column="0">
<item row="1" column="1">
<widget class="QCheckBox" name="checkBox_SBG">
<property name="text">
<string>SBG</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QCheckBox" name="checkBox_USE">
<property name="text">
<string>USE</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QCheckBox" name="checkBox_INS">
<property name="text">
<string>INS</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QCheckBox" name="checkBox_SBG">
<item row="0" column="0">
<widget class="QLabel" name="label_11">
<property name="text">
<string>SBG</string>
<string>点击显示 内置惯导 曲线</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_16">
<property name="text">
<string>点击显示 外置SBG 曲线</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="label_17">
<property name="text">
<string>点击显示 使用数据 曲线</string>
</property>
</widget>
</item>