Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
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
Don't start Vehicles for things which aren't Vehicles
parent
cdde6b74
Changes
1
Hide whitespace changes
Inline
Side-by-side
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
Supports
Markdown
0%
Try again
or
attach a new 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