SafetyComponent.h 1.39 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.
 *
 ****************************************************************************/

Don Gagne's avatar
Don Gagne committed
10 11 12 13

#ifndef SafetyComponent_H
#define SafetyComponent_H

14
#include "VehicleComponent.h"
Don Gagne's avatar
Don Gagne committed
15 16 17 18 19 20

/// @file
///     @brief The Radio VehicleComponent is used to calibrate the trasmitter and assign function mapping
///             to channels.
///     @author Don Gagne <don@thegagnes.com>

21
class SafetyComponent : public VehicleComponent
Don Gagne's avatar
Don Gagne committed
22 23 24 25
{
    Q_OBJECT
    
public:
26
    SafetyComponent(Vehicle* vehicle, AutoPilotPlugin* autopilot, QObject* parent = NULL);
Don Gagne's avatar
Don Gagne committed
27
    
28
    // Virtuals from VehicleComponent
29
    QStringList setupCompleteChangedTriggerList(void) const override;
Don Gagne's avatar
Don Gagne committed
30 31
    
    // Virtuals from VehicleComponent
32 33 34 35 36 37 38 39
    QString name(void) const override;
    QString description(void) const override;
    QString iconResource(void) const override;
    bool requiresSetup(void) const override;
    bool setupComplete(void) const override;
    QUrl setupSource(void) const override;
    QUrl summaryQmlSource(void) const override;
    bool allowSetupWhileArmed(void) const override { return true; }
40

Don Gagne's avatar
Don Gagne committed
41 42 43 44 45 46
private:
    const QString   _name;
    QVariantList    _summaryItems;
};

#endif