SensorsComponent.h 1.61 KB
Newer Older
1 2
/****************************************************************************
 *
Gus Grubba's avatar
Gus Grubba committed
3
 * (c) 2009-2020 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
4 5 6 7 8 9
 *
 * 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 = nullptr);
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

Don Gagne's avatar
Don Gagne committed
44 45 46
    static const char* _airspeedDisabledParam;
    static const char* _airspeedBreakerParam;
    static const char* _airspeedCalParam;
47

48
    static const char* _magEnabledParam;
49
    static const char* _magCalParam;
50 51 52
};

#endif