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
0671e9a7
Commit
0671e9a7
authored
May 05, 2017
by
DonLakeFlyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow core plugin to disable multi-vehicle
parent
8192004c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
MultiVehicleManager.cc
src/Vehicle/MultiVehicleManager.cc
+5
-0
QGCOptions.h
src/api/QGCOptions.h
+3
-3
No files found.
src/Vehicle/MultiVehicleManager.cc
View file @
0671e9a7
...
...
@@ -16,6 +16,8 @@
#include "QGroundControlQmlGlobal.h"
#include "ParameterManager.h"
#include "SettingsManager.h"
#include "QGCCorePlugin.h"
#include "QGCOptions.h"
#if defined (__ios__) || defined(__android__)
#include "MobileScreenMgr.h"
...
...
@@ -72,6 +74,9 @@ void MultiVehicleManager::setToolbox(QGCToolbox *toolbox)
void
MultiVehicleManager
::
_vehicleHeartbeatInfo
(
LinkInterface
*
link
,
int
vehicleId
,
int
componentId
,
int
vehicleMavlinkVersion
,
int
vehicleFirmwareType
,
int
vehicleType
)
{
if
(
_vehicles
.
count
()
>
0
&&
!
qgcApp
()
->
toolbox
()
->
corePlugin
()
->
options
()
->
multiVehicleEnabled
())
{
return
;
}
if
(
_ignoreVehicleIds
.
contains
(
vehicleId
)
||
getVehicleById
(
vehicleId
)
||
vehicleId
==
0
)
{
return
;
}
...
...
src/api/QGCOptions.h
View file @
0671e9a7
...
...
@@ -41,6 +41,7 @@ public:
Q_PROPERTY
(
bool
guidedBarShowEmergencyStop
READ
guidedBarShowEmergencyStop
NOTIFY
guidedBarShowEmergencyStopChanged
)
Q_PROPERTY
(
bool
guidedBarShowOrbit
READ
guidedBarShowOrbit
NOTIFY
guidedBarShowOrbitChanged
)
Q_PROPERTY
(
bool
missionWaypointsOnly
READ
missionWaypointsOnly
NOTIFY
missionWaypointsOnlyChanged
)
Q_PROPERTY
(
bool
multiVehicleEnabled
READ
multiVehicleEnabled
NOTIFY
multiVehicleEnabledChanged
)
/// Should QGC hide its settings menu and colapse it into one single menu (Settings and Vehicle Setup)?
/// @return true if QGC should consolidate both menus into one.
...
...
@@ -68,13 +69,11 @@ public:
virtual
bool
showSensorCalibrationAirspeed
()
const
{
return
true
;
}
virtual
bool
wifiReliableForCalibration
()
const
{
return
false
;
}
virtual
bool
sensorsHaveFixedOrientation
()
const
{
return
false
;
}
virtual
bool
showFirmwareUpgrade
()
const
{
return
true
;
}
virtual
bool
guidedBarShowEmergencyStop
()
const
{
return
true
;
}
virtual
bool
guidedBarShowOrbit
()
const
{
return
true
;
}
virtual
bool
missionWaypointsOnly
()
const
{
return
false
;
}
///< true: Only allow waypoints and complex items in Plan
virtual
bool
multiVehicleEnabled
()
const
{
return
true
;
}
///< false: multi vehicle support is disabled
/// If returned QString in non-empty it means that firmware upgrade will run in a mode which only
/// supports downloading a single firmware file from the URL. It also supports custom install through
...
...
@@ -91,6 +90,7 @@ signals:
void
guidedBarShowEmergencyStopChanged
(
bool
show
);
void
guidedBarShowOrbitChanged
(
bool
show
);
void
missionWaypointsOnlyChanged
(
bool
missionWaypointsOnly
);
void
multiVehicleEnabledChanged
(
bool
multiVehicleEnabled
);
private:
CustomInstrumentWidget
*
_defaultInstrumentWidget
;
...
...
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