mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-03-15 07:29:15 +01:00
GCS/OPMap - pathplanner - added modelUavoProxy class.
This commit is contained in:
parent
5d07b67922
commit
35cf2fe374
@ -25,6 +25,7 @@ struct pathPlanData
|
||||
|
||||
class flightDataModel:public QAbstractTableModel
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
enum pathPlanDataEnum
|
||||
{
|
||||
|
4
ground/openpilotgcs/src/plugins/opmap/modeluavoproxy.cpp
Normal file
4
ground/openpilotgcs/src/plugins/opmap/modeluavoproxy.cpp
Normal file
@ -0,0 +1,4 @@
|
||||
#include "modeluavoproxy.h"
|
||||
modelUavoProxy::modelUavoProxy(QObject *parent,flightDataModel * model)
|
||||
{
|
||||
}
|
20
ground/openpilotgcs/src/plugins/opmap/modeluavoproxy.h
Normal file
20
ground/openpilotgcs/src/plugins/opmap/modeluavoproxy.h
Normal file
@ -0,0 +1,20 @@
|
||||
#ifndef MODELUAVOPROXY_H
|
||||
#define MODELUAVOPROXY_H
|
||||
|
||||
#include <QObject>
|
||||
#include "flightdatamodel.h"
|
||||
#include "pathaction.h"
|
||||
#include "waypoint.h"
|
||||
|
||||
class modelUavoProxy:public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit modelUavoProxy(QObject *parent, flightDataModel *model);
|
||||
public slots:
|
||||
void modelToObjects();
|
||||
void objectsToModel();
|
||||
|
||||
};
|
||||
|
||||
#endif // MODELUAVOPROXY_H
|
@ -21,7 +21,8 @@ HEADERS += opmapplugin.h \
|
||||
flightdatamodel.h \
|
||||
modelmapproxy.h \
|
||||
widgetdelegates.h \
|
||||
pathplanner.h
|
||||
pathplanner.h \
|
||||
modeluavoproxy.h
|
||||
|
||||
SOURCES += opmapplugin.cpp \
|
||||
opmapgadgetwidget.cpp \
|
||||
@ -35,7 +36,8 @@ SOURCES += opmapplugin.cpp \
|
||||
flightdatamodel.cpp \
|
||||
modelmapproxy.cpp \
|
||||
widgetdelegates.cpp \
|
||||
pathplanner.cpp
|
||||
pathplanner.cpp \
|
||||
modeluavoproxy.cpp
|
||||
|
||||
OTHER_FILES += OPMapGadget.pluginspec
|
||||
|
||||
|
@ -212,7 +212,7 @@ OPMapGadgetWidget::OPMapGadgetWidget(QWidget *parent) : QWidget(parent)
|
||||
m_map->UAV->SetUAVPos(m_home_position.coord, 0.0); // set the UAV position
|
||||
if(m_map->GPS)
|
||||
m_map->GPS->SetUAVPos(m_home_position.coord, 0.0); // set the UAV position
|
||||
/*
|
||||
|
||||
qDebug()<<"here0";
|
||||
model=new flightDataModel(this);
|
||||
qDebug()<<"here1";
|
||||
@ -228,7 +228,7 @@ OPMapGadgetWidget::OPMapGadgetWidget(QWidget *parent) : QWidget(parent)
|
||||
qDebug()<<"here6";
|
||||
waypoint_edit_dialog=new opmap_edit_waypoint_dialog(NULL,model,selectionModel);
|
||||
qDebug()<<"here7";
|
||||
*/
|
||||
|
||||
/*
|
||||
distBearing db;
|
||||
db.distance=100;
|
||||
|
Loading…
x
Reference in New Issue
Block a user