去除xbit相关按键
This commit is contained in:
@@ -585,30 +585,6 @@ void CommandBox::on_pushButton_HeatOff_clicked()
|
||||
}
|
||||
|
||||
|
||||
void CommandBox::on_pushButton_ServoTest_clicked()//IDLE
|
||||
{
|
||||
on_commandClicked(tr("设定 %1").arg(ui->pushButton_ServoTest->text()),
|
||||
0,0,0,0,0,0,0,20007,0);
|
||||
}
|
||||
|
||||
void CommandBox::on_pushButton_StabilizeTest_clicked()
|
||||
{
|
||||
on_commandClicked(tr("设定 %1").arg(ui->pushButton_StabilizeTest->text()),
|
||||
1,0,0,0,0,0,0,20007,0);
|
||||
}
|
||||
|
||||
void CommandBox::on_pushButton_ManualTest_clicked()
|
||||
{
|
||||
on_commandClicked(tr("设定 %1").arg(ui->pushButton_ManualTest->text()),
|
||||
2,0,0,0,0,0,0,20007,0);
|
||||
}
|
||||
|
||||
void CommandBox::on_pushButton_swep_clicked()
|
||||
{
|
||||
on_commandClicked(tr("设定 %1").arg(ui->pushButton_swep->text()),
|
||||
3,0,0,0,0,0,0,20007,0);
|
||||
}
|
||||
|
||||
void CommandBox::on_pushButton_test_cmd_clicked()
|
||||
{
|
||||
uint8_t ch = 0;
|
||||
|
||||
@@ -84,15 +84,6 @@ private slots:
|
||||
|
||||
void on_pushButton_HeatOn2_clicked();
|
||||
|
||||
|
||||
void on_pushButton_ServoTest_clicked();
|
||||
|
||||
void on_pushButton_StabilizeTest_clicked();
|
||||
|
||||
void on_pushButton_ManualTest_clicked();
|
||||
|
||||
void on_pushButton_swep_clicked();
|
||||
|
||||
void on_pushButton_test_cmd_clicked();
|
||||
|
||||
void on_pushButton_test_stop_clicked();
|
||||
|
||||
@@ -94,47 +94,20 @@
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QGroupBox" name="groupBox_4">
|
||||
<property name="title">
|
||||
<string>BIT模式选择</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout_11">
|
||||
<property name="spacing">
|
||||
<number>12</number>
|
||||
</property>
|
||||
<item row="0" column="0">
|
||||
<widget class="QPushButton" name="pushButton_ServoTest">
|
||||
<property name="text">
|
||||
<string>舵面测试</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QPushButton" name="pushButton_StabilizeTest">
|
||||
<property name="text">
|
||||
<string>增稳测试</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="2">
|
||||
<widget class="QPushButton" name="pushButton_ManualTest">
|
||||
<property name="text">
|
||||
<string>手控测试</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QPushButton" name="pushButton_swep">
|
||||
<property name="text">
|
||||
<string>扫频</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<spacer name="verticalSpacer">
|
||||
<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 row="1" column="0">
|
||||
<widget class="QGroupBox" name="groupBox_6">
|
||||
<property name="title">
|
||||
<string>扫频设置</string>
|
||||
@@ -265,19 +238,6 @@
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="0">
|
||||
<spacer name="verticalSpacer">
|
||||
<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 row="0" column="0">
|
||||
|
||||
@@ -78,11 +78,6 @@ void commandprocess::process()//线程函数
|
||||
}
|
||||
|
||||
}
|
||||
//退出线程
|
||||
//thread->quit();
|
||||
//thread->wait(200);//等待结束
|
||||
//thread->deleteLater();
|
||||
//thread = nullptr;
|
||||
}
|
||||
|
||||
void commandprocess::setID(int m_sysid,int m_compid)
|
||||
@@ -93,13 +88,6 @@ void commandprocess::setID(int m_sysid,int m_compid)
|
||||
|
||||
void commandprocess::Send(mavlink_message_t msg)
|
||||
{
|
||||
/*
|
||||
uint8_t buff[MAVLINK_MAX_PACKET_LEN+sizeof(quint64)];
|
||||
quint64 currentTimestamp = ((quint64)QDateTime::currentMSecsSinceEpoch()) * 1000;
|
||||
qToBigEndian(currentTimestamp, buff);
|
||||
|
||||
uint16_t len = mavlink_msg_to_send_buffer(buff+ sizeof(quint64), &msg);
|
||||
*/
|
||||
uint8_t buff[MAVLINK_MAX_PACKET_LEN+sizeof(quint64)];
|
||||
uint16_t len = mavlink_msg_to_send_buffer(buff, &msg);
|
||||
emit SendMessageTo(0,buff, len);//使用信号和槽
|
||||
|
||||
Reference in New Issue
Block a user