完善航点设置,历史遗留问题
This commit is contained in:
+7
-3
@@ -59,8 +59,8 @@ Cockpit::Cockpit(QWidget *parent): QWidget(parent)
|
||||
m_Target.verticalspeed = 0;
|
||||
m_Target.yaw = 0;
|
||||
|
||||
m_Target.airspeed_maximun = 1.5 * 340;
|
||||
m_Target.airspeed_minimun = 80;
|
||||
m_Target.airspeed_maximun = 1.3 * 340;
|
||||
m_Target.airspeed_minimun = 95;
|
||||
|
||||
m_State.GPS = "GPS";
|
||||
m_State.MODE = "MODE";
|
||||
@@ -108,6 +108,7 @@ void Cockpit::UpdateTimeout(void)
|
||||
|
||||
void Cockpit::mouseMoveEvent(QMouseEvent *e)
|
||||
{
|
||||
/*
|
||||
const QPoint curPos = e->pos();
|
||||
if (isPress)
|
||||
{
|
||||
@@ -119,6 +120,7 @@ void Cockpit::mouseMoveEvent(QMouseEvent *e)
|
||||
}
|
||||
|
||||
update();
|
||||
*/
|
||||
}
|
||||
|
||||
void Cockpit::mouseReleaseEvent(QMouseEvent *e)
|
||||
@@ -131,6 +133,7 @@ void Cockpit::mousePressEvent(QMouseEvent *e)
|
||||
{
|
||||
qDebug() << "mouse pos" << e->pos();
|
||||
|
||||
/*
|
||||
if (e->button() == Qt::RightButton)
|
||||
{
|
||||
lastPoint = e->pos();
|
||||
@@ -143,8 +146,9 @@ void Cockpit::mousePressEvent(QMouseEvent *e)
|
||||
H_pos = 44.7059;
|
||||
V_pos = 43.8235;
|
||||
}
|
||||
*/
|
||||
|
||||
QPoint minpos(29,252);
|
||||
QPoint minpos(29,252);
|
||||
QPoint maxpos(99,281);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user