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
425e32bd
Commit
425e32bd
authored
Jun 08, 2010
by
pixhawk
Browse files
Working on text in HSI display
parent
b0ee126b
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/ui/HSIDisplay.cc
View file @
425e32bd
...
...
@@ -40,7 +40,8 @@ This file is part of the PIXHAWK project
HSIDisplay
::
HSIDisplay
(
QWidget
*
parent
)
:
HDDisplay
(
NULL
,
parent
),
gpsSatellites
()
gpsSatellites
(),
satellitesUsed
(
0
)
{
}
...
...
@@ -174,6 +175,11 @@ void HSIDisplay::drawGPS()
const
float
margin
=
0.2
f
;
// 20% margin of total width on each side
float
radius
=
(
vwidth
-
vwidth
*
2.0
f
*
margin
)
/
2.0
f
;
// Draw satellite labels
// QString label;
// label.sprintf("%05.1f", value);
// paintText(label, color, 4.5f, xRef-7.5f, yRef-2.0f, painter);
for
(
int
i
=
0
;
i
<
gpsSatellites
.
size
();
i
++
)
{
GPSSatellite
*
sat
=
gpsSatellites
.
at
(
i
);
...
...
src/ui/HSIDisplay.h
View file @
425e32bd
...
...
@@ -97,6 +97,7 @@ protected:
};
QVector
<
GPSSatellite
*>
gpsSatellites
;
unsigned
int
satellitesUsed
;
private:
};
...
...
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