地面站终端 App
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
880 B

/****************************************************************************
*
* (c) 2009-2020 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:
APMMotorComponent(Vehicle* vehicle, AutoPilotPlugin* autopilot, QObject* parent = nullptr);
// VehicleComponent overrides
QUrl setupSource (void) const override;
bool allowSetupWhileArmed (void) const override { return true; }
Q_INVOKABLE QString motorIndexToLetter(int index);
private:
const QString _name;
};
#endif