Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
ee85f3b0
Commit
ee85f3b0
authored
Aug 26, 2014
by
Lorenz Meier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not instantiate specific modes we do not support well
parent
5c5f6cc0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
14 deletions
+15
-14
QGCMAVLinkUASFactory.cc
src/uas/QGCMAVLinkUASFactory.cc
+15
-14
No files found.
src/uas/QGCMAVLinkUASFactory.cc
View file @
ee85f3b0
...
@@ -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
:
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment