|
|
|
@ -12,7 +12,7 @@ QGCMapWidget::QGCMapWidget(QWidget *parent) :
@@ -12,7 +12,7 @@ QGCMapWidget::QGCMapWidget(QWidget *parent) :
|
|
|
|
|
addUAS(uas); |
|
|
|
|
} |
|
|
|
|
UAV->setVisible(true); |
|
|
|
|
UAV->setPos(40, 8); |
|
|
|
|
UAV->setPos(0, 0); |
|
|
|
|
UAV->show(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -69,9 +69,20 @@ QGCMapWidget::QGCMapWidget(QWidget *parent) :
@@ -69,9 +69,20 @@ QGCMapWidget::QGCMapWidget(QWidget *parent) :
|
|
|
|
|
UAV->SetUAVPos(pos_lat_lon, 0.0); // set the UAV position
|
|
|
|
|
GPS->SetUAVPos(pos_lat_lon, 0.0); // set the UAV position
|
|
|
|
|
|
|
|
|
|
//SetUAVPos(pos_lat_lon, 0.0); // set the UAV position
|
|
|
|
|
|
|
|
|
|
setFrameStyle(QFrame::NoFrame); // no border frame
|
|
|
|
|
setBackgroundBrush(QBrush(Qt::black)); // tile background
|
|
|
|
|
|
|
|
|
|
setFocus(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
QGCMapWidget::~QGCMapWidget() |
|
|
|
|
{ |
|
|
|
|
SetShowHome(false); // doing this appears to stop the map lib crashing on exit
|
|
|
|
|
SetShowUAV(false); // " "
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* |
|
|
|
|
* @param uas the UAS/MAV to monitor/display with the HUD |
|
|
|
|