47 lines
665 B
C++
47 lines
665 B
C++
|
|
#ifndef VEHICLEMANAGE_H
|
||
|
|
#define VEHICLEMANAGE_H
|
||
|
|
|
||
|
|
#include "VehicleManage_global.h"
|
||
|
|
#include "QObject"
|
||
|
|
#include "QDebug"
|
||
|
|
|
||
|
|
|
||
|
|
#include "Vehicle.h"
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
//收到信息,根据信息的ID,生成载具,管理各个载具的通讯,数据进出,航线,参数等,和界面的交流
|
||
|
|
//独立线程
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
class VEHICLEMANAGE_EXPORT VehicleManage : public QObject
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
explicit VehicleManage();
|
||
|
|
~VehicleManage();
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
signals:
|
||
|
|
|
||
|
|
void PluginLoading(bool flag);
|
||
|
|
|
||
|
|
public slots:
|
||
|
|
|
||
|
|
Vehicle *addVehicle(int id);
|
||
|
|
|
||
|
|
private slots:
|
||
|
|
void setMsg(int sysid, mavlink_message_t *msg);
|
||
|
|
|
||
|
|
private:
|
||
|
|
|
||
|
|
|
||
|
|
QMap<int,Vehicle *> Vehicles;
|
||
|
|
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif // VEHICLEMANAGE_H
|