SlugsMAV.cc 488 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 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;
    }
}