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
d8e18e6c
Commit
d8e18e6c
authored
Dec 17, 2011
by
Lorenz Meier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Working towards full 64bit support
parent
ddc90009
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
11 deletions
+15
-11
qgroundcontrol.pri
qgroundcontrol.pri
+6
-6
configuration.h
src/configuration.h
+2
-2
Pixhawk3DWidget.cc
src/ui/map3D/Pixhawk3DWidget.cc
+7
-3
No files found.
qgroundcontrol.pri
View file @
d8e18e6c
...
...
@@ -37,13 +37,13 @@ win32-msvc2008|win32-msvc2010 {
DEFINES += _TTY_NOWARN_
# MAC OS X
macx {
macx
-g++42
{
# COMPILER_VERSION = $$system(gcc -v)
#message(Using compiler $$COMPILER_VERSION)
CONFIG += x86 cocoa phonon
CONFIG -= x86
_64
CONFIG += x86
_64
cocoa phonon
CONFIG -= x86
#HARDWARE_PLATFORM = $$system(uname -a)
#contains( $$HARDWARE_PLATFORM, "9.6.0" ) || contains( $$HARDWARE_PLATFORM, "9.7.0" ) || contains( $$HARDWARE_PLATFORM, "9.8.0" ) || contains( $$HARDWARE_PLATFORM, "9.9.0" ) {
...
...
@@ -93,7 +93,7 @@ macx {
# Copy parameter tooltip files
QMAKE_POST_LINK += && cp -rf $$BASEDIR/files $$TARGETDIR/qgroundcontrol.app/Contents/MacOS
# Copy libraries
QMAKE_POST_LINK += && cp -rf $$BASEDIR/lib/mac
32-gcc40
/lib/* $$TARGETDIR/qgroundcontrol.app/Contents/MacOS
QMAKE_POST_LINK += && cp -rf $$BASEDIR/lib/mac
64
/lib/* $$TARGETDIR/qgroundcontrol.app/Contents/MacOS
# Copy model files
#QMAKE_POST_LINK += && cp -f $$BASEDIR/models/*.dae $$TARGETDIR/qgroundcontrol.app/Contents/MacOs
...
...
@@ -105,11 +105,11 @@ macx {
# Include OpenSceneGraph libraries
INCLUDEPATH += -framework GLUT \
-framework Cocoa \
$$BASEDIR/lib/mac
32-gcc40
/include
$$BASEDIR/lib/mac
64
/include
LIBS += -framework GLUT \
-framework Cocoa \
-L$$BASEDIR/lib/mac
32-gcc40
/lib \
-L$$BASEDIR/lib/mac
64
/lib \
-lOpenThreads \
-losg \
-losgViewer \
...
...
src/configuration.h
View file @
d8e18e6c
...
...
@@ -12,14 +12,14 @@
#define WITH_TEXT_TO_SPEECH 1
#define QGC_APPLICATION_NAME "QGroundControl"
#define QGC_APPLICATION_VERSION "v. 1.0.
0
(Alpha RC18)"
#define QGC_APPLICATION_VERSION "v. 1.0.
1
(Alpha RC18)"
namespace
QGC
{
const
QString
APPNAME
=
"QGROUNDCONTROL"
;
const
QString
COMPANYNAME
=
"QGROUNDCONTROL"
;
const
int
APPLICATIONVERSION
=
10
0
;
// 1.0.0
const
int
APPLICATIONVERSION
=
10
1
;
// 1.0.1
}
#endif // QGC_CONFIGURATION_H
src/ui/map3D/Pixhawk3DWidget.cc
View file @
d8e18e6c
...
...
@@ -701,13 +701,17 @@ Pixhawk3DWidget::createGrid(void)
osg
::
ref_ptr
<
osg
::
Vec3Array
>
coarseCoords
(
new
osg
::
Vec3Array
);
// draw a 20m x 20m grid with 0.25m resolution
for
(
float
i
=
-
radius
;
i
<=
radius
;
i
+=
resolution
)
{
if
(
fabsf
(
i
-
floor
(
i
+
0.5
f
))
<
0.01
f
)
{
for
(
float
i
=
-
radius
;
i
<=
radius
;
i
+=
resolution
)
{
if
(
fabs
(
i
-
floor
(
i
+
0.5
f
))
<
0.01
f
)
{
coarseCoords
->
push_back
(
osg
::
Vec3
(
i
,
-
radius
,
0.0
f
));
coarseCoords
->
push_back
(
osg
::
Vec3
(
i
,
radius
,
0.0
f
));
coarseCoords
->
push_back
(
osg
::
Vec3
(
-
radius
,
i
,
0.0
f
));
coarseCoords
->
push_back
(
osg
::
Vec3
(
radius
,
i
,
0.0
f
));
}
else
{
}
else
{
fineCoords
->
push_back
(
osg
::
Vec3
(
i
,
-
radius
,
0.0
f
));
fineCoords
->
push_back
(
osg
::
Vec3
(
i
,
radius
,
0.0
f
));
fineCoords
->
push_back
(
osg
::
Vec3
(
-
radius
,
i
,
0.0
f
));
...
...
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