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
8705be33
Commit
8705be33
authored
Dec 07, 2010
by
pixhawk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed Mac compile error
parent
e43e1962
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
8 deletions
+19
-8
.gitignore
.gitignore
+1
-0
qgroundcontrol.pri
qgroundcontrol.pri
+3
-3
QGCGoogleEarthView.cc
src/ui/map3D/QGCGoogleEarthView.cc
+12
-3
QGCGoogleEarthView.h
src/ui/map3D/QGCGoogleEarthView.h
+3
-2
No files found.
.gitignore
View file @
8705be33
...
...
@@ -26,3 +26,4 @@ deploy/mac
deploy/linux
controller_log*
user_config.pri
*.app
qgroundcontrol.pri
View file @
8705be33
...
...
@@ -77,11 +77,11 @@ macx {
ICON = $$BASEDIR/images/icons/macx.icns
# Copy audio files if needed
QMAKE_PRE_LINK += && cp -rf $$BASEDIR/audio $$
DES
TDIR/qgroundcontrol.app/Contents/MacOs/.
QMAKE_PRE_LINK += && cp -rf $$BASEDIR/audio $$
TARGE
TDIR/qgroundcontrol.app/Contents/MacOs/.
# Copy google earth starter file
QMAKE_PRE_LINK += && cp -f $$BASEDIR/images/earth.html $$
DES
TDIR/qgroundcontrol.app/Contents/MacOs/.
QMAKE_PRE_LINK += && cp -f $$BASEDIR/images/earth.html $$
TARGE
TDIR/qgroundcontrol.app/Contents/MacOs/.
# Copy model files
QMAKE_PRE_LINK += && cp -f $$BASEDIR/models/*.skp $$DES
TDIR/qgroundcontrol.app/Contents/MacOs/.
#QMAKE_PRE_LINK += && cp -f $$BASEDIR/models/*.dae $$TARGE
TDIR/qgroundcontrol.app/Contents/MacOs/.
exists(/Library/Frameworks/osg.framework):exists(/Library/Frameworks/OpenThreads.framework) {
# No check for GLUT.framework since it's a MAC default
...
...
src/ui/map3D/QGCGoogleEarthView.cc
View file @
8705be33
...
...
@@ -18,6 +18,7 @@ QGCGoogleEarthView::QGCGoogleEarthView(QWidget *parent) :
updateTimer
(
new
QTimer
(
this
)),
mav
(
NULL
),
followCamera
(
true
),
trailEnabled
(
true
),
#if (defined Q_OS_MAC)
webViewMac
(
new
QWebView
(
this
)),
#endif
...
...
@@ -51,6 +52,14 @@ QGCGoogleEarthView::QGCGoogleEarthView(QWidget *parent) :
updateTimer
->
start
(
200
);
#endif
// Follow checkbox
ui
->
followAirplaneCheckbox
->
setChecked
(
followCamera
);
connect
(
ui
->
followAirplaneCheckbox
,
SIGNAL
(
toggled
(
bool
)),
this
,
SLOT
(
follow
(
bool
)));
// Trail checkbox
ui
->
trailCheckbox
->
setChecked
(
trailEnabled
);
connect
(
ui
->
trailCheckbox
,
SIGNAL
(
toggled
(
bool
)),
this
,
SLOT
(
showTrail
(
bool
)));
// Get list of available 3D models
// Load HTML file
...
...
@@ -70,19 +79,19 @@ void QGCGoogleEarthView::setActiveUAS(UASInterface* uas)
mav
=
uas
;
}
void
QGCGoogleEarthView
::
showTrail
(
int
state
)
void
QGCGoogleEarthView
::
showTrail
(
bool
state
)
{
}
void
QGCGoogleEarthView
::
showWaypoints
(
int
state
)
void
QGCGoogleEarthView
::
showWaypoints
(
bool
state
)
{
}
void
QGCGoogleEarthView
::
follow
(
bool
follow
)
{
followCamera
=
follow
;
}
void
QGCGoogleEarthView
::
updateState
()
...
...
src/ui/map3D/QGCGoogleEarthView.h
View file @
8705be33
...
...
@@ -57,9 +57,9 @@ public slots:
/** @brief Set the currently selected UAS */
void
setActiveUAS
(
UASInterface
*
uas
);
/** @brief Show the vehicle trail */
void
showTrail
(
int
state
);
void
showTrail
(
bool
state
);
/** @brief Show the waypoints */
void
showWaypoints
(
int
state
);
void
showWaypoints
(
bool
state
);
/** @brief Follow the aircraft during flight */
void
follow
(
bool
follow
);
...
...
@@ -68,6 +68,7 @@ protected:
QTimer
*
updateTimer
;
UASInterface
*
mav
;
bool
followCamera
;
bool
trailEnabled
;
#if (defined Q_OS_WIN) && !(defined __MINGW32__)
WebAxWidget
*
webViewWin
;
#endif
...
...
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