PX4AutoPilotPlugin.h 2.05 KB
Newer Older
1 2 3 4 5 6 7 8
/****************************************************************************
 *
 *   (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.
 *
 ****************************************************************************/
9

10 11 12 13 14

#ifndef PX4AUTOPILOT_H
#define PX4AUTOPILOT_H

#include "AutoPilotPlugin.h"
15
#include "PX4AirframeLoader.h"
Don Gagne's avatar
Don Gagne committed
16
#include "AirframeComponent.h"
Don Gagne's avatar
Don Gagne committed
17
#include "PX4RadioComponent.h"
18
#include "ESP8266Component.h"
Don Gagne's avatar
Don Gagne committed
19 20 21
#include "FlightModesComponent.h"
#include "SensorsComponent.h"
#include "SafetyComponent.h"
22
#include "CameraComponent.h"
dogmaphobic's avatar
dogmaphobic committed
23
#include "PowerComponent.h"
Don Gagne's avatar
Don Gagne committed
24
#include "MotorComponent.h"
Don Gagne's avatar
Don Gagne committed
25
#include "PX4TuningComponent.h"
26
#include "SyslinkComponent.h"
27
#include "Vehicle.h"
28

29 30
#include <QImage>

31 32 33 34 35 36 37 38 39
/// @file
///     @brief This is the PX4 specific implementation of the AutoPilot class.
///     @author Don Gagne <don@thegagnes.com>

class PX4AutoPilotPlugin : public AutoPilotPlugin
{
    Q_OBJECT

public:
40
    PX4AutoPilotPlugin(Vehicle* vehicle, QObject* parent);
Don Gagne's avatar
Don Gagne committed
41 42 43
    ~PX4AutoPilotPlugin();

    // Overrides from AutoPilotPlugin
44 45
    const QVariantList& vehicleComponents(void) override;
    void parametersReadyPreChecks(void) override;
46
    QString prerequisiteSetup(VehicleComponent* component) const override;
47 48
protected:
    bool                    _incorrectParameterVersion; ///< true: parameter version incorrect, setup not allowed
49
    PX4AirframeLoader*      _airframeFacts;
Don Gagne's avatar
Don Gagne committed
50
    AirframeComponent*      _airframeComponent;
Don Gagne's avatar
Don Gagne committed
51
    PX4RadioComponent*      _radioComponent;
52
    ESP8266Component*       _esp8266Component;
Don Gagne's avatar
Don Gagne committed
53 54 55
    FlightModesComponent*   _flightModesComponent;
    SensorsComponent*       _sensorsComponent;
    SafetyComponent*        _safetyComponent;
56
    CameraComponent*        _cameraComponent;
dogmaphobic's avatar
dogmaphobic committed
57
    PowerComponent*         _powerComponent;
Don Gagne's avatar
Don Gagne committed
58
    MotorComponent*         _motorComponent;
Don Gagne's avatar
Don Gagne committed
59
    PX4TuningComponent*     _tuningComponent;
60
    SyslinkComponent*       _syslinkComponent;
61 62
private:
    QVariantList            _components;
63 64 65
};

#endif