SensorsComponent.h 1.47 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
Don Gagne's avatar
Don Gagne committed
28
    virtual QStringList setupCompleteChangedTriggerList(void) const;
29 30 31 32
    
    // Virtuals from VehicleComponent
    virtual QString name(void) const;
    virtual QString description(void) const;
33
    virtual QString iconResource(void) const;
34 35
    virtual bool requiresSetup(void) const;
    virtual bool setupComplete(void) const;
36
    virtual QUrl setupSource(void) const;
37
    virtual QUrl summaryQmlSource(void) const;
Don Gagne's avatar
Don Gagne committed
38
    virtual QString prerequisiteSetup(void) const;
39 40
    
private:
41 42
    const QString   _name;
    QVariantList    _summaryItems;
43
    QStringList     _deviceIds;
44 45

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

#endif