PX4GeoFenceManager.h 1.19 KB
Newer Older
Don Gagne's avatar
Don Gagne committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
/****************************************************************************
 *
 *   (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
 *
 * QGroundControl is licensed according to the terms in the file
 * COPYING.md in the root of the source code directory.
 *
 ****************************************************************************/

#ifndef PX4GeoFenceManager_H
#define PX4GeoFenceManager_H

#include "GeoFenceManager.h"
#include "QGCMAVLink.h"
#include "FactSystem.h"

class PX4GeoFenceManager : public GeoFenceManager
{
    Q_OBJECT
    
public:
    PX4GeoFenceManager(Vehicle* vehicle);
    ~PX4GeoFenceManager();

    // Overrides from GeoFenceManager
26 27 28 29
    bool            circleEnabled       (void) const { return true; }
    Fact*           circleRadiusFact    (void) const { return _circleRadiusFact; }
    QVariantList    params              (void) const final { return _params; }
    QStringList     paramLabels         (void) const final { return _paramLabels; }
Don Gagne's avatar
Don Gagne committed
30 31 32 33 34

private slots:
    void _parametersReady(void);
    
private:
35 36
    bool            _firstParamLoadComplete;
    Fact*           _circleRadiusFact;
Don Gagne's avatar
Don Gagne committed
37 38 39 40 41
    QVariantList    _params;
    QStringList     _paramLabels;
};

#endif