1
0
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:
PT_Dreamer 2012-06-17 20:09:21 +01:00
parent 5d07b67922
commit 35cf2fe374
5 changed files with 31 additions and 4 deletions

View File

@ -25,6 +25,7 @@ struct pathPlanData
class flightDataModel:public QAbstractTableModel
{
Q_OBJECT
public:
enum pathPlanDataEnum
{

View File

@ -0,0 +1,4 @@
#include "modeluavoproxy.h"
modelUavoProxy::modelUavoProxy(QObject *parent,flightDataModel * model)
{
}

View 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

View File

@ -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

View File

@ -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;