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
c5a11aaa
Commit
c5a11aaa
authored
Apr 13, 2015
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused code
parent
2b00efc9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
31 deletions
+0
-31
QGCUASParamManager.cc
src/uas/QGCUASParamManager.cc
+0
-27
QGCUASParamManager.h
src/uas/QGCUASParamManager.h
+0
-4
No files found.
src/uas/QGCUASParamManager.cc
View file @
c5a11aaa
...
...
@@ -21,9 +21,6 @@ QGCUASParamManager* QGCUASParamManager::initWithUAS(UASInterface* uas)
{
mav
=
uas
;
// Load default values and tooltips for data model
loadParamMetaInfoCSV
();
paramDataModel
.
setUASID
(
mav
->
getUASID
());
paramCommsMgr
.
initWithUAS
(
uas
);
...
...
@@ -143,30 +140,6 @@ void QGCUASParamManager::setPendingParam(int compId, const QString& paramName,
void
QGCUASParamManager
::
loadParamMetaInfoCSV
()
{
// Load default values and tooltips
QString
autopilot
(
mav
->
getAutopilotTypeName
());
QDir
appDir
=
QApplication
::
applicationDirPath
();
appDir
.
cd
(
"files"
);
QString
fileName
=
QString
(
"%1/%2/parameter_tooltips/tooltips.txt"
).
arg
(
appDir
.
canonicalPath
()).
arg
(
autopilot
.
toLower
());
QFile
paramMetaFile
(
fileName
);
qDebug
()
<<
"loadParamMetaInfoCSV for autopilot: "
<<
autopilot
<<
" from file: "
<<
fileName
;
if
(
!
paramMetaFile
.
open
(
QIODevice
::
ReadOnly
|
QIODevice
::
Text
))
{
qDebug
()
<<
"loadParamMetaInfoCSV couldn't open:"
<<
fileName
;
return
;
}
QTextStream
in
(
&
paramMetaFile
);
paramDataModel
.
loadParamMetaInfoFromStream
(
in
);
paramMetaFile
.
close
();
}
UASInterface
*
QGCUASParamManager
::
getUAS
()
{
return
mav
;
...
...
src/uas/QGCUASParamManager.h
View file @
c5a11aaa
...
...
@@ -65,10 +65,6 @@ public:
virtual
bool
parametersReady
(
void
)
{
return
_parametersReady
;
}
protected:
/** @brief Load parameter meta information from appropriate CSV file */
virtual
void
loadParamMetaInfoCSV
();
void
connectToModelAndComms
();
...
...
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