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
f38008a1
Commit
f38008a1
authored
Feb 06, 2017
by
Don Gagne
Committed by
Lorenz Meier
Feb 07, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't start Vehicles for things which aren't Vehicles
parent
cdde6b74
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
MultiVehicleManager.cc
src/Vehicle/MultiVehicleManager.cc
+13
-2
No files found.
src/Vehicle/MultiVehicleManager.cc
View file @
f38008a1
...
...
@@ -70,11 +70,22 @@ void MultiVehicleManager::setToolbox(QGCToolbox *toolbox)
void
MultiVehicleManager
::
_vehicleHeartbeatInfo
(
LinkInterface
*
link
,
int
vehicleId
,
int
vehicleMavlinkVersion
,
int
vehicleFirmwareType
,
int
vehicleType
)
{
if
(
_ignoreVehicleIds
.
contains
(
vehicleId
)
||
getVehicleById
(
vehicleId
)
||
vehicleId
==
0
)
{
if
(
_ignoreVehicleIds
.
contains
(
vehicleId
)
||
getVehicleById
(
vehicleId
)
||
vehicleId
==
0
)
{
return
;
}
switch
(
vehicleType
)
{
case
MAV_TYPE_GCS
:
case
MAV_TYPE_ONBOARD_CONTROLLER
:
case
MAV_TYPE_GIMBAL
:
case
MAV_TYPE_ADSB
:
// These are not vehicles, so don't create a vehicle for them
return
;
default:
// All other MAV_TYPEs create vehicles
break
;
}
qCDebug
(
MultiVehicleManagerLog
())
<<
"Adding new vehicle link:vehicleId:vehicleMavlinkVersion:vehicleFirmwareType:vehicleType "
<<
link
->
getName
()
<<
vehicleId
...
...
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