Commit ee85f3b0 authored by Lorenz Meier's avatar Lorenz Meier

Do not instantiate specific modes we do not support well

parent 5c5f6cc0
...@@ -67,20 +67,21 @@ UASInterface* QGCMAVLinkUASFactory::createUAS(MAVLinkProtocol* mavlink, LinkInte ...@@ -67,20 +67,21 @@ UASInterface* QGCMAVLinkUASFactory::createUAS(MAVLinkProtocol* mavlink, LinkInte
uas = px4; uas = px4;
} }
break; break;
case MAV_AUTOPILOT_ARDUPILOTMEGA: // XXX the APM support needs polishing before it can be shown to users
{ // case MAV_AUTOPILOT_ARDUPILOTMEGA:
ArduPilotMegaMAV* mav = new ArduPilotMegaMAV(mavlink, worker, sysid); // {
// Set the system type // ArduPilotMegaMAV* mav = new ArduPilotMegaMAV(mavlink, worker, sysid);
mav->setSystemType((int)heartbeat->type); // // Set the system type
// mav->setSystemType((int)heartbeat->type);
// Connect this robot to the UAS object
// it is IMPORTANT here to use the right object type, // // Connect this robot to the UAS object
// else the slot of the parent object is called (and thus the special // // it is IMPORTANT here to use the right object type,
// packets never reach their goal) // // else the slot of the parent object is called (and thus the special
connect(mavlink, SIGNAL(messageReceived(LinkInterface*, mavlink_message_t)), mav, SLOT(receiveMessage(LinkInterface*, mavlink_message_t))); // // packets never reach their goal)
uas = mav; // connect(mavlink, SIGNAL(messageReceived(LinkInterface*, mavlink_message_t)), mav, SLOT(receiveMessage(LinkInterface*, mavlink_message_t)));
} // uas = mav;
break; // }
// break;
#ifdef QGC_USE_SENSESOAR_MESSAGES #ifdef QGC_USE_SENSESOAR_MESSAGES
case MAV_AUTOPILOT_SENSESOAR: case MAV_AUTOPILOT_SENSESOAR:
{ {
......
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