add ewadme

This commit is contained in:
hm
2020-10-10 15:25:17 +08:00
parent e3c98c6259
commit 44fd672a12
6 changed files with 45 additions and 1 deletions
+1
View File
@@ -17,6 +17,7 @@ CommandBox::~CommandBox()
}
void CommandBox::closeEvent(QCloseEvent *event)
{
setFloat();
+30
View File
@@ -59,3 +59,33 @@ void StatusUI::setHealthState(mavlink_sys_status_t *t)
setColor(ui->checkBox_5,((health & 0x0400) > 0)?(((health & 0x0010) > 0)?(state::success):(state::warning)):(state::failure));
setColor(ui->checkBox_6,((health & 0x0800) > 0)?(((health & 0x0020) > 0)?(state::success):(state::warning)):(state::failure));
}
void StatusUI::setAttitude(mavlink_attitude_t *t)
{
}
void StatusUI::setGPS(mavlink_gps_raw_int_t *t)
{
}
void StatusUI::setServo(mavlink_servos_t *t)
{
}
void StatusUI::setBattery(mavlink_battery_status_t *t)
{
}
void StatusUI::setRPM(mavlink_rpm_t *t)
{
}
+3
View File
@@ -180,6 +180,9 @@ void PowerSystem::setFloat(void)
if(this->parent())
{
this->setParent(nullptr);
QScreen *screen=QGuiApplication::primaryScreen ();;
this->move((screen->availableGeometry().width()-this->width())/2,(screen->availableGeometry().height()-this->height())/2);
}
else
{
+2 -1
View File
@@ -12,7 +12,8 @@
#include "mavlink.h"
#include "QDebug"
#include "QScreen"
#include <QtGlobal>
#include "Scope.h"
+2
View File
@@ -99,6 +99,8 @@ void ToolsUI::resizeEvent(QResizeEvent *event)
{
Q_UNUSED(event)
qDebug() << this->x() << this->y();
index0->setGeometry(0,0,ui->frame->geometry().width(),ui->frame->geometry().height());
index1->setGeometry(0,0,ui->frame->geometry().width(),ui->frame->geometry().height());
index2->setGeometry(0,0,ui->frame->geometry().width(),ui->frame->geometry().height());
+7
View File
@@ -0,0 +1,7 @@
# 想法
* 将界面拖出做成库
* 界面内的设置做成统一的接口,也做成库
* mavlink解析模仿nspector,做一个自动解析
* 设置界面模仿vscode的解析,支持ui和json,并且是下滑式
*