add ewadme
This commit is contained in:
@@ -17,6 +17,7 @@ CommandBox::~CommandBox()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void CommandBox::closeEvent(QCloseEvent *event)
|
void CommandBox::closeEvent(QCloseEvent *event)
|
||||||
{
|
{
|
||||||
setFloat();
|
setFloat();
|
||||||
|
|||||||
@@ -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_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));
|
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)
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|||||||
@@ -180,6 +180,9 @@ void PowerSystem::setFloat(void)
|
|||||||
if(this->parent())
|
if(this->parent())
|
||||||
{
|
{
|
||||||
this->setParent(nullptr);
|
this->setParent(nullptr);
|
||||||
|
QScreen *screen=QGuiApplication::primaryScreen ();;
|
||||||
|
this->move((screen->availableGeometry().width()-this->width())/2,(screen->availableGeometry().height()-this->height())/2);
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -12,7 +12,8 @@
|
|||||||
#include "mavlink.h"
|
#include "mavlink.h"
|
||||||
|
|
||||||
#include "QDebug"
|
#include "QDebug"
|
||||||
|
#include "QScreen"
|
||||||
|
#include <QtGlobal>
|
||||||
|
|
||||||
#include "Scope.h"
|
#include "Scope.h"
|
||||||
|
|
||||||
|
|||||||
@@ -99,6 +99,8 @@ void ToolsUI::resizeEvent(QResizeEvent *event)
|
|||||||
{
|
{
|
||||||
Q_UNUSED(event)
|
Q_UNUSED(event)
|
||||||
|
|
||||||
|
qDebug() << this->x() << this->y();
|
||||||
|
|
||||||
index0->setGeometry(0,0,ui->frame->geometry().width(),ui->frame->geometry().height());
|
index0->setGeometry(0,0,ui->frame->geometry().width(),ui->frame->geometry().height());
|
||||||
index1->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());
|
index2->setGeometry(0,0,ui->frame->geometry().width(),ui->frame->geometry().height());
|
||||||
|
|||||||
Reference in New Issue
Block a user