Commit ef4f860e authored by pixhawk's avatar pixhawk

Added skeletons for other MAV projects

parent 2ecf982d
......@@ -115,7 +115,10 @@ HEADERS += src/MG.h \
src/ui/param/ParamTreeModel.h \
src/ui/QGCParamWidget.h \
src/ui/QGCSensorSettingsWidget.h \
src/ui/linechart/Linecharts.h
src/ui/linechart/Linecharts.h \
src/uas/SlugsMAV.h \
src/uas/PxQuadMAV.h \
src/uas/ArduPilotMAV.h
SOURCES += src/main.cc \
src/Core.cc \
src/uas/UASManager.cc \
......@@ -164,5 +167,8 @@ SOURCES += src/main.cc \
src/ui/param/ParamTreeModel.cc \
src/ui/QGCParamWidget.cc \
src/ui/QGCSensorSettingsWidget.cc \
src/ui/linechart/Linecharts.cc
src/ui/linechart/Linecharts.cc \
src/uas/SlugsMAV.cc \
src/uas/PxQuadMAV.cc \
src/uas/ArduPilotMAV.cc
RESOURCES = mavground.qrc
#include "ArduPilotMAV.h"
ArduPilotMAV::ArduPilotMAV(MAVLinkProtocol* mavlink, int id) :
UAS(mavlink, id)//,
// place other initializers here
{
}
#ifndef ARDUPILOTMAV_H
#define ARDUPILOTMAV_H
#include "UAS.h"
class ArduPilotMAV : public UAS
{
public:
ArduPilotMAV(MAVLinkProtocol* mavlink, int id = 0);
};
#endif // ARDUPILOTMAV_H
#include "PxQuadMAV.h"
PxQuadMAV::PxQuadMAV(MAVLinkProtocol* mavlink, int id) :
UAS(mavlink, id)
{
}
#ifndef PXQUADMAV_H
#define PXQUADMAV_H
#include "UAS.h"
class PxQuadMAV : public UAS
{
public:
PxQuadMAV(MAVLinkProtocol* mavlink, int id);
};
#endif // PXQUADMAV_H
#include "SlugsMAV.h"
SlugsMAV::SlugsMAV(MAVLinkProtocol* mavlink, int id) :
UAS(mavlink, id)//,
// Place other initializers here
{
}
void SlugsMAV::receiveMessage(LinkInterface* link, mavlink_message_t message)
{
switch (message.msgid)
{
case MAVLINK_MSG_ID_HEARTBEAT:
{
printf("RECEIVED HEARTBEAT");
break;
}
default:
printf("\nSLUGS RECEIVED MESSAGE WITH ID %d", message.msgid);
break;
}
}
#ifndef SLUGSMAV_H
#define SLUGSMAV_H
#include "UAS.h"
class SlugsMAV : public UAS
{
public:
SlugsMAV(MAVLinkProtocol* mavlink, int id = 0);
public slots:
void receiveMessage(LinkInterface* link, mavlink_message_t message);
};
#endif // SLUGSMAV_H
......@@ -144,7 +144,7 @@ void UAS::receiveMessage(LinkInterface* link, mavlink_message_t message)
mavlink_msg_sys_status_decode(&message, &state);
// FIXME
qDebug() << "SYSTEM NAV MODE:" << state.nav_mode;
//qDebug() << "SYSTEM NAV MODE:" << state.nav_mode;
QString audiostring = "System " + QString::number(this->getUASID());
QString stateAudio = "";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment