|
|
|
@ -32,8 +32,6 @@ UASInterface* QGCMAVLinkUASFactory::createUAS(MAVLinkProtocol* mavlink, LinkInte
@@ -32,8 +32,6 @@ UASInterface* QGCMAVLinkUASFactory::createUAS(MAVLinkProtocol* mavlink, LinkInte
|
|
|
|
|
// Set the system type
|
|
|
|
|
mav->setSystemType((int)heartbeat->type); |
|
|
|
|
|
|
|
|
|
mav->moveToThread(worker); |
|
|
|
|
|
|
|
|
|
// Connect this robot to the UAS object
|
|
|
|
|
connect(mavlink, SIGNAL(messageReceived(LinkInterface*, mavlink_message_t)), mav, SLOT(receiveMessage(LinkInterface*, mavlink_message_t))); |
|
|
|
|
#ifdef QGC_PROTOBUF_ENABLED |
|
|
|
@ -48,8 +46,6 @@ UASInterface* QGCMAVLinkUASFactory::createUAS(MAVLinkProtocol* mavlink, LinkInte
@@ -48,8 +46,6 @@ UASInterface* QGCMAVLinkUASFactory::createUAS(MAVLinkProtocol* mavlink, LinkInte
|
|
|
|
|
// Set the system type
|
|
|
|
|
mav->setSystemType((int)heartbeat->type); |
|
|
|
|
|
|
|
|
|
mav->moveToThread(worker); |
|
|
|
|
|
|
|
|
|
// Connect this robot to the UAS object
|
|
|
|
|
// it is IMPORTANT here to use the right object type,
|
|
|
|
|
// else the slot of the parent object is called (and thus the special
|
|
|
|
@ -67,8 +63,6 @@ UASInterface* QGCMAVLinkUASFactory::createUAS(MAVLinkProtocol* mavlink, LinkInte
@@ -67,8 +63,6 @@ UASInterface* QGCMAVLinkUASFactory::createUAS(MAVLinkProtocol* mavlink, LinkInte
|
|
|
|
|
// Set the system type
|
|
|
|
|
mav->setSystemType((int)heartbeat->type); |
|
|
|
|
|
|
|
|
|
mav->moveToThread(worker); |
|
|
|
|
|
|
|
|
|
// Connect this robot to the UAS object
|
|
|
|
|
// it is IMPORTANT here to use the right object type,
|
|
|
|
|
// else the slot of the parent object is called (and thus the special
|
|
|
|
@ -83,8 +77,6 @@ UASInterface* QGCMAVLinkUASFactory::createUAS(MAVLinkProtocol* mavlink, LinkInte
@@ -83,8 +77,6 @@ UASInterface* QGCMAVLinkUASFactory::createUAS(MAVLinkProtocol* mavlink, LinkInte
|
|
|
|
|
// Set the system type
|
|
|
|
|
mav->setSystemType((int)heartbeat->type); |
|
|
|
|
|
|
|
|
|
mav->moveToThread(worker); |
|
|
|
|
|
|
|
|
|
// Connect this robot to the UAS object
|
|
|
|
|
// it is IMPORTANT here to use the right object type,
|
|
|
|
|
// else the slot of the parent object is called (and thus the special
|
|
|
|
@ -121,6 +113,10 @@ UASInterface* QGCMAVLinkUASFactory::createUAS(MAVLinkProtocol* mavlink, LinkInte
@@ -121,6 +113,10 @@ UASInterface* QGCMAVLinkUASFactory::createUAS(MAVLinkProtocol* mavlink, LinkInte
|
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Get the UAS ready
|
|
|
|
|
worker->start(QThread::HighPriority); |
|
|
|
|
connect(uas, SIGNAL(destroyed()), worker, SLOT(quit())); |
|
|
|
|
|
|
|
|
|
// Set the autopilot type
|
|
|
|
|
uas->setAutopilotType((int)heartbeat->autopilot); |
|
|
|
|
|
|
|
|
@ -130,8 +126,5 @@ UASInterface* QGCMAVLinkUASFactory::createUAS(MAVLinkProtocol* mavlink, LinkInte
@@ -130,8 +126,5 @@ UASInterface* QGCMAVLinkUASFactory::createUAS(MAVLinkProtocol* mavlink, LinkInte
|
|
|
|
|
// Now add UAS to "official" list, which makes the whole application aware of it
|
|
|
|
|
UASManager::instance()->addUAS(uas); |
|
|
|
|
|
|
|
|
|
worker->start(QThread::HighPriority); |
|
|
|
|
connect(uas, SIGNAL(destroyed()), worker, SLOT(quit())); |
|
|
|
|
|
|
|
|
|
return uas; |
|
|
|
|
} |
|
|
|
|