b
This commit is contained in:
@@ -183,13 +183,34 @@ void OPMapWidget::addUAV(int sysid,int compid)
|
||||
|
||||
void OPMapWidget::NOPTimeout()
|
||||
{
|
||||
qDebug() << "NOPTimeout";
|
||||
//qDebug() << "NOPTimeout";
|
||||
if(isWPCreate == false)
|
||||
{
|
||||
isLNOP = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void OPMapWidget::SetCurrentPosition()
|
||||
{
|
||||
foreach(QGraphicsItem * i, map->childItems()) {
|
||||
UAVItem *u = qgraphicsitem_cast<UAVItem *>(i);
|
||||
if (u) {
|
||||
|
||||
if(u->Select())//当前选中,那么检查如果超出了屏幕范围,就将位置拉回中点
|
||||
{
|
||||
map->core->SetCurrentPosition(u->UAVPos());//缓慢拉回来
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void OPMapWidget::SetCurrentPosition(internals::PointLatLng const & value)
|
||||
{
|
||||
map->core->SetCurrentPosition(value);
|
||||
}
|
||||
|
||||
|
||||
void OPMapWidget::setUAVPos(int sysid,int compid,double x,double y,double z)
|
||||
{
|
||||
//qDebug() << sysid << compid;
|
||||
@@ -1356,6 +1377,7 @@ void OPMapWidget::WPLoad(QString path)//带文件目录参数
|
||||
|
||||
|
||||
|
||||
|
||||
emit setWPProperty(param1,param2,param3,param4,
|
||||
x,y,z,
|
||||
seq,
|
||||
@@ -1369,6 +1391,7 @@ void OPMapWidget::WPLoad(QString path)//带文件目录参数
|
||||
mission_type);
|
||||
|
||||
|
||||
Item->emitWPProperty();
|
||||
|
||||
}
|
||||
|
||||
@@ -1611,6 +1634,9 @@ void OPMapWidget::receivedPoint(float param1,float param2,float param3,float par
|
||||
//Item->setParent(map);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
emit setWPProperty(param1,param2,param3,param4,
|
||||
x,y,z,
|
||||
seq+1,
|
||||
@@ -1623,6 +1649,9 @@ void OPMapWidget::receivedPoint(float param1,float param2,float param3,float par
|
||||
autocontinue,
|
||||
mission_type);
|
||||
|
||||
|
||||
Item->emitWPProperty();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user