SensorsComponent.h 1.48 KB
Newer Older
1 2 3 4 5 6 7 8 9
/****************************************************************************
 *
 *   (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.
 *
 ****************************************************************************/

10 11 12 13

#ifndef SENSORSCOMPONENT_H
#define SENSORSCOMPONENT_H

14
#include "VehicleComponent.h"
15 16 17 18 19

/// @file
///     @brief The Sensors VehicleComponent is used to calibrate the the various sensors associated with the board.
///     @author Don Gagne <don@thegagnes.com>

20
class SensorsComponent : public VehicleComponent
21 22 23 24
{
    Q_OBJECT
    
public:
25
    SensorsComponent(Vehicle* vehicle, AutoPilotPlugin* autopilot, QObject* parent = NULL);
26
    
27
    // Virtuals from VehicleComponent
28
    QStringList setupCompleteChangedTriggerList(void) const override;
29 30
    
    // Virtuals from VehicleComponent
31 32 33 34 35 36 37
    virtual QString name(void) const override;
    virtual QString description(void) const override;
    virtual QString iconResource(void) const override;
    virtual bool requiresSetup(void) const override;
    virtual bool setupComplete(void) const override;
    virtual QUrl setupSource(void) const override;
    virtual QUrl summaryQmlSource(void) const override;
38 39
    
private:
40 41
    const QString   _name;
    QVariantList    _summaryItems;
42
    QStringList     _deviceIds;
43 44

    static const char* _airspeedBreaker;
45
    static const char* _airspeedCal;
46 47 48
};

#endif