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
ae162cec
Commit
ae162cec
authored
Jul 26, 2011
by
lm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor fixes, settings store / load not working yet as expected for map trail options.
parent
a90ceccb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
QGCMapToolBar.cc
src/ui/map/QGCMapToolBar.cc
+6
-2
QGCMapWidget.cc
src/ui/map/QGCMapWidget.cc
+1
-1
QGCMapWidget.h
src/ui/map/QGCMapWidget.h
+1
-1
No files found.
src/ui/map/QGCMapToolBar.cc
View file @
ae162cec
...
...
@@ -152,7 +152,7 @@ void QGCMapToolBar::setUAVTrailDistance()
if
(
ok
)
{
map
->
setTrailModeDistance
(
trailDistance
);
ui
->
posLabel
->
setText
(
tr
(
"Trail mode: Every %1 meter%2"
).
arg
(
trailDistance
).
arg
((
trailDistance
>
1
)
?
"s"
:
""
));
ui
->
posLabel
->
setText
(
tr
(
"Trail mode: Every %1 meter%2"
).
arg
(
trailDistance
).
arg
((
trailDistance
==
1
)
?
"s"
:
""
));
}
}
}
...
...
@@ -166,7 +166,11 @@ void QGCMapToolBar::setUpdateInterval()
{
bool
ok
;
float
time
=
action
->
data
().
toFloat
(
&
ok
);
if
(
ok
)
map
->
setUpdateRateLimit
(
time
);
if
(
ok
)
{
map
->
setUpdateRateLimit
(
time
);
ui
->
posLabel
->
setText
(
tr
(
"Map update rate limit: %1 second%2"
).
arg
(
time
).
arg
((
time
!=
1.0
f
)
?
"s"
:
""
));
}
}
}
...
...
src/ui/map/QGCMapWidget.cc
View file @
ae162cec
...
...
@@ -17,7 +17,7 @@ QGCMapWidget::QGCMapWidget(QWidget *parent) :
followUAVID
(
0
)
{
// Widget is inactive until shown
loadSettings
(
false
);
// Set cache mode
}
...
...
src/ui/map/QGCMapWidget.h
View file @
ae162cec
...
...
@@ -100,7 +100,7 @@ public slots:
}
/** @brief Load the settings for this widget from disk */
void
loadSettings
(
bool
changePosition
=
fals
e
);
void
loadSettings
(
bool
changePosition
=
tru
e
);
/** @brief Store the settings for this widget to disk */
void
storeSettings
();
...
...
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