PX4AutoPilotPlugin.h 2.13 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"
Don Gagne's avatar
Don Gagne committed
26
#include "MixersComponent.h"
27
#include "SyslinkComponent.h"
28
#include "Vehicle.h"
29

30 31
#include <QImage>

32 33 34 35 36 37 38 39 40
/// @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:
41
    PX4AutoPilotPlugin(Vehicle* vehicle, QObject* parent);
Don Gagne's avatar
Don Gagne committed
42 43 44
    ~PX4AutoPilotPlugin();

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

#endif