1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-02 10:24:11 +01:00

OPmap: fixed some bugs introduced by merge with james/revo

This commit is contained in:
Corvus Corax 2012-11-01 07:22:15 +01:00
parent 32e3f2e631
commit f5ad9ae3f0
2 changed files with 7 additions and 1 deletions

View File

@ -74,7 +74,7 @@ void modelUavoProxy::modelToObjects()
index=myModel->index(x,flightDataModel::ALTITUDERELATIVE);
altitude=myModel->data(index).toFloat();
index=myModel->index(x,flightDataModel::VELOCITY);
waypoint.Velocity[0]=myModel->data(index).toFloat();
waypoint.Velocity=myModel->data(index).toFloat();
waypoint.Position[Waypoint::POSITION_NORTH]=distance*cos(bearing/180*M_PI);
waypoint.Position[Waypoint::POSITION_EAST]=distance*sin(bearing/180*M_PI);

View File

@ -18,8 +18,11 @@ HEADERS += opmapplugin.h \
opmap_edit_waypoint_dialog.h \
opmap_zoom_slider_widget.h \
opmap_statusbar_widget.h \
flightdatamodel.h \
modelmapproxy.h \
widgetdelegates.h \
pathplanner.h \
modeluavoproxy.h \
homeeditor.h
SOURCES += opmapplugin.cpp \
@ -31,8 +34,11 @@ SOURCES += opmapplugin.cpp \
opmap_edit_waypoint_dialog.cpp \
opmap_zoom_slider_widget.cpp \
opmap_statusbar_widget.cpp \
flightdatamodel.cpp \
modelmapproxy.cpp \
widgetdelegates.cpp \
pathplanner.cpp \
modeluavoproxy.cpp \
homeeditor.cpp
OTHER_FILES += OPMapGadget.pluginspec