8 changed files with 84 additions and 3 deletions
@ -0,0 +1,7 @@ |
|||||||
|
#include "ArduPilotMAV.h" |
||||||
|
|
||||||
|
ArduPilotMAV::ArduPilotMAV(MAVLinkProtocol* mavlink, int id) : |
||||||
|
UAS(mavlink, id)//,
|
||||||
|
// place other initializers here
|
||||||
|
{ |
||||||
|
} |
@ -0,0 +1,12 @@ |
|||||||
|
#ifndef ARDUPILOTMAV_H |
||||||
|
#define ARDUPILOTMAV_H |
||||||
|
|
||||||
|
#include "UAS.h" |
||||||
|
|
||||||
|
class ArduPilotMAV : public UAS |
||||||
|
{ |
||||||
|
public: |
||||||
|
ArduPilotMAV(MAVLinkProtocol* mavlink, int id = 0); |
||||||
|
}; |
||||||
|
|
||||||
|
#endif // ARDUPILOTMAV_H
|
@ -0,0 +1,6 @@ |
|||||||
|
#include "PxQuadMAV.h" |
||||||
|
|
||||||
|
PxQuadMAV::PxQuadMAV(MAVLinkProtocol* mavlink, int id) : |
||||||
|
UAS(mavlink, id) |
||||||
|
{ |
||||||
|
} |
@ -0,0 +1,12 @@ |
|||||||
|
#ifndef PXQUADMAV_H |
||||||
|
#define PXQUADMAV_H |
||||||
|
|
||||||
|
#include "UAS.h" |
||||||
|
|
||||||
|
class PxQuadMAV : public UAS |
||||||
|
{ |
||||||
|
public: |
||||||
|
PxQuadMAV(MAVLinkProtocol* mavlink, int id); |
||||||
|
}; |
||||||
|
|
||||||
|
#endif // PXQUADMAV_H
|
@ -0,0 +1,23 @@ |
|||||||
|
#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; |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,15 @@ |
|||||||
|
#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
|
Loading…
Reference in new issue