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
84badf33
Commit
84badf33
authored
Jun 19, 2013
by
dongfang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PFD crash on start bugfix and rename to .cc
parent
e0d9b8fb
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
182 additions
and
272 deletions
+182
-272
qgroundcontrol.pro
qgroundcontrol.pro
+1
-1
PrimaryFlightDisplay.cc
src/ui/PrimaryFlightDisplay.cc
+173
-261
PrimaryFlightDisplay.h
src/ui/PrimaryFlightDisplay.h
+8
-10
No files found.
qgroundcontrol.pro
View file @
84badf33
...
...
@@ -568,7 +568,7 @@ SOURCES += src/main.cc \
src
/
ui
/
designer
/
QGCRadioChannelDisplay
.
cpp
\
src
/
ui
/
QGCTabbedInfoView
.
cpp
\
src
/
ui
/
UASRawStatusView
.
cpp
\
src
/
ui
/
PrimaryFlightDisplay
.
c
pp
\
src
/
ui
/
PrimaryFlightDisplay
.
c
c
\
src
/
ui
/
uas
/
QGCMessageView
.
cc
#
Enable
Google
Earth
only
on
Mac
OS
and
Windows
with
Visual
Studio
compiler
...
...
src/ui/PrimaryFlightDisplay.c
pp
→
src/ui/PrimaryFlightDisplay.c
c
View file @
84badf33
This diff is collapsed.
Click to expand it.
src/ui/PrimaryFlightDisplay.h
View file @
84badf33
...
...
@@ -63,6 +63,7 @@ signals:
void
visibilityChanged
(
bool
visible
);
private:
/*
enum AltimeterMode {
PRIMARY_MAIN_GPS_SUB, // Show the primary alt. on tape and GPS as extra info
GPS_MAIN // Show GPS on tape and no extra info
...
...
@@ -77,6 +78,7 @@ private:
PRIMARY_MAIN_GROUND_SUB,// Show primary speed (often airspeed) on tape and groundspeed as extra
GROUND_MAIN // Show groundspeed on tape and no extra info
};
*/
/*
* There are at least these differences between airplane and copter PDF view:
...
...
@@ -115,9 +117,11 @@ private:
UASInterface
*
uas
;
///< The uas currently monitored
/*
AltimeterMode altimeterMode;
AltimeterFrame altimeterFrame;
SpeedMode speedMode;
*/
bool
didReceivePrimaryAltitude
;
bool
didReceivePrimarySpeed
;
...
...
@@ -144,9 +148,9 @@ private:
float
navigationTargetBearing
;
Layout
layout
;
// The display layout.
Style
style
;
// The AI style (tapes translusent or opague)
Style
style
;
// The AI style (tapes translucent or opague)
// TODO: Use stylesheet colors?
QColor
redColor
;
QColor
amberColor
;
QColor
greenColor
;
...
...
@@ -154,7 +158,7 @@ private:
qreal
lineWidth
;
qreal
fineLineWidth
;
qreal
smallTe
s
tSize
;
qreal
smallTe
x
tSize
;
qreal
mediumTextSize
;
qreal
largeTextSize
;
...
...
@@ -170,13 +174,7 @@ private:
static
const
int
tickValues
[];
static
const
QString
compassWindNames
[];
static
const
int
updateInterval
=
40
;
signals:
public
slots
:
static
const
int
updateInterval
=
40
;
};
#endif // PRIMARYFLIGHTDISPLAY_H
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