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
71c451ff
Commit
71c451ff
authored
May 31, 2013
by
dongfang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PFD layout simplification (no corner panels)
parent
501f5124
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
188 additions
and
88 deletions
+188
-88
PrimaryFlightDisplay.cpp
src/ui/PrimaryFlightDisplay.cpp
+178
-83
PrimaryFlightDisplay.h
src/ui/PrimaryFlightDisplay.h
+10
-5
No files found.
src/ui/PrimaryFlightDisplay.cpp
View file @
71c451ff
This diff is collapsed.
Click to expand it.
src/ui/PrimaryFlightDisplay.h
View file @
71c451ff
...
...
@@ -5,6 +5,8 @@
#include <QPen>
#include "UASInterface.h"
#define SEPARATE_COMPASS_ASPECTRATIO (3.0f/4.0f)
#define LINEWIDTH 0.0032f
//#define TAPES_TEXT_SIZE 0.028
...
...
@@ -53,6 +55,7 @@
#define COMPASS_DISK_MINORLINEWIDTH 0.004
#define COMPASS_DISK_SPAN 180
#define COMPASS_DISK_RESOLUTION 15
#define COMPASS_SEPARATE_DISK_RESOLUTION 5
#define COMPASS_DISK_MARKERWIDTH 0.2
#define COMPASS_DISK_MARKERHEIGHT 0.133
...
...
@@ -119,14 +122,16 @@ public slots:
protected:
enum
Layout
{
FEATUREPANELS_IN_CORNERS
,
// For a wide and low container.
FEATUREPANELS_AT_BOTTOM
,
// For higher container.
//FEATUREPANELS_IN_CORNERS, // For a wide and low container.
//FEATUREPANELS_AT_BOTTOM, // For higher container.
COMPASS_INTEGRATED
,
COMPASS_SEPARATED
// For a very high container. Feature panels are at bottom.
};
enum
Style
{
OPAGUE_TAPES
,
// Hzon not visible through tapes nor through feature panels. Frames with margins between.
TRANSLUCENT_TAPES
// Hzon visible through tapes and (frameless) feature panels.
NO_OVERLAYS
,
// Hzon not visible through tapes nor through feature panels. Frames with margins between.
OVERLAY_HORIZONTAL
,
// Hzon visible through tapes and (frameless) feature panels.
OVERLAY_HSI
// Hzon visible through everything except bottom feature panels.
};
void
paintEvent
(
QPaintEvent
*
event
);
...
...
@@ -167,7 +172,7 @@ private:
void
drawTextRightCenter
(
QPainter
&
painter
,
QString
text
,
float
fontSize
,
float
x
,
float
y
);
void
drawTextCenterBottom
(
QPainter
&
painter
,
QString
text
,
float
fontSize
,
float
x
,
float
y
);
void
drawTextCenterTop
(
QPainter
&
painter
,
QString
text
,
float
fontSize
,
float
x
,
float
y
);
void
drawAIGlobalFeatures
(
QPainter
&
painter
,
QRectF
a
rea
);
void
drawAIGlobalFeatures
(
QPainter
&
painter
,
QRectF
mainArea
,
QRectF
paintA
rea
);
void
drawAIAirframeFixedFeatures
(
QPainter
&
painter
,
QRectF
area
);
void
drawPitchScale
(
QPainter
&
painter
,
QRectF
area
,
bool
drawNumbersLeft
,
bool
drawNumbersRight
);
void
drawRollScale
(
QPainter
&
painter
,
QRectF
area
,
bool
drawTicks
,
bool
drawNumbers
);
...
...
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