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
056f0bfb
Commit
056f0bfb
authored
Jun 05, 2019
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parent
4729b98c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
ParameterManager.cc
src/FactSystem/ParameterManager.cc
+7
-2
No files found.
src/FactSystem/ParameterManager.cc
View file @
056f0bfb
...
...
@@ -1177,7 +1177,7 @@ void ParameterManager::_initialRequestTimeout(void)
QString
ParameterManager
::
parameterMetaDataFile
(
Vehicle
*
vehicle
,
MAV_AUTOPILOT
firmwareType
,
int
wantedMajorVersion
,
int
&
majorVersion
,
int
&
minorVersion
)
{
bool
cacheHit
=
false
;
FirmwarePlugin
*
plugin
=
qgcApp
()
->
toolbox
()
->
firmwarePluginManager
()
->
firmwarePluginForAutopilot
(
firmwareType
,
MAV_TYPE_QUADROTOR
);
FirmwarePlugin
*
plugin
=
vehicle
->
firmwarePlugin
(
);
// Cached files are stored in settings location
QSettings
settings
;
...
...
@@ -1272,7 +1272,12 @@ QString ParameterManager::parameterMetaDataFile(Vehicle* vehicle, MAV_AUTOPILOT
void
ParameterManager
::
cacheMetaDataFile
(
const
QString
&
metaDataFile
,
MAV_AUTOPILOT
firmwareType
)
{
FirmwarePlugin
*
plugin
=
qgcApp
()
->
toolbox
()
->
firmwarePluginManager
()
->
firmwarePluginForAutopilot
(
firmwareType
,
MAV_TYPE_QUADROTOR
);
// In order to call FirmwarePlugin::getParameterMetaDataVersionInfo we need the firmware plugin. But at this point we do not have a vehicle associated
// with the call. Since the call to FirmwarePlugin::getParameterMetaDataVersionInfo is invariant to vehicle type we just need to use any one of the
// supported vehicle types to get the correct FirmwarePlugin.
MAV_TYPE
anySupportedVehicleType
=
qgcApp
()
->
toolbox
()
->
firmwarePluginManager
()
->
supportedVehicleTypes
(
firmwareType
)[
0
];
FirmwarePlugin
*
plugin
=
qgcApp
()
->
toolbox
()
->
firmwarePluginManager
()
->
firmwarePluginForAutopilot
(
firmwareType
,
anySupportedVehicleType
);
int
newMajorVersion
,
newMinorVersion
;
plugin
->
getParameterMetaDataVersionInfo
(
metaDataFile
,
newMajorVersion
,
newMinorVersion
);
...
...
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