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

Changed variable from static to class static.

This commit is contained in:
Laura Sebesta 2012-08-12 23:36:27 +02:00
parent 1a22eef491
commit 62041f40ad
2 changed files with 4 additions and 4 deletions

View File

@ -28,10 +28,11 @@
#include "uavitem.h"
#include <math.h>
static double groundspeed_mps_filt;
namespace mapcontrol
{
double UAVItem::groundspeed_mps_filt = 0;
UAVItem::UAVItem(MapGraphicItem* map,OPMapWidget* parent,QString uavPic):map(map),mapwidget(parent),showtrail(true),showtrailline(true),trailtime(5),traildistance(50),autosetreached(true)
,autosetdistance(100),altitude(0),showUAVInfo(false)
{
@ -60,7 +61,6 @@ namespace mapcontrol
Q_UNUSED(option);
Q_UNUSED(widget);
//Draw plane
painter->drawPixmap(-pic.width()/2,-pic.height()/2,pic);

View File

@ -248,7 +248,7 @@ namespace mapcontrol
double Distance3D(internals::PointLatLng const& coord, int const& altitude);
double autosetdistance;
bool showUAVInfo;
// QRectF rect;
static double groundspeed_mps_filt;
public slots: