mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-27 16:54:15 +01:00
Changed variable from static to class static.
This commit is contained in:
parent
1a22eef491
commit
62041f40ad
@ -28,10 +28,11 @@
|
|||||||
#include "uavitem.h"
|
#include "uavitem.h"
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
static double groundspeed_mps_filt;
|
|
||||||
|
|
||||||
namespace mapcontrol
|
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)
|
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)
|
,autosetdistance(100),altitude(0),showUAVInfo(false)
|
||||||
{
|
{
|
||||||
@ -60,7 +61,6 @@ namespace mapcontrol
|
|||||||
Q_UNUSED(option);
|
Q_UNUSED(option);
|
||||||
Q_UNUSED(widget);
|
Q_UNUSED(widget);
|
||||||
|
|
||||||
|
|
||||||
//Draw plane
|
//Draw plane
|
||||||
painter->drawPixmap(-pic.width()/2,-pic.height()/2,pic);
|
painter->drawPixmap(-pic.width()/2,-pic.height()/2,pic);
|
||||||
|
|
||||||
|
@ -248,7 +248,7 @@ namespace mapcontrol
|
|||||||
double Distance3D(internals::PointLatLng const& coord, int const& altitude);
|
double Distance3D(internals::PointLatLng const& coord, int const& altitude);
|
||||||
double autosetdistance;
|
double autosetdistance;
|
||||||
bool showUAVInfo;
|
bool showUAVInfo;
|
||||||
// QRectF rect;
|
static double groundspeed_mps_filt;
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user