APMMotorComponent.h 882 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
/****************************************************************************
 *
 *   (c) 2009-2018 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 APMMotorComponent_H
#define APMMotorComponent_H

#include "MotorComponent.h"

class APMMotorComponent : public MotorComponent
{
    Q_OBJECT

public:
21
    APMMotorComponent(Vehicle* vehicle, AutoPilotPlugin* autopilot, QObject* parent = nullptr);
22

23 24 25 26 27
    // VehicleComponent overrides
    QUrl setupSource            (void) const override;
    bool allowSetupWhileArmed   (void) const override { return true; }

    Q_INVOKABLE QString motorIndexToLetter(int index);
28 29 30 31 32 33

private:
    const QString   _name;
};

#endif