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
0b2bfa10
Commit
0b2bfa10
authored
Apr 11, 2010
by
Hugo Vincent
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of pixhawk.ethz.ch:groundcontrol
Conflicts: mavground.pri
parents
f16a6a00
bec6c3aa
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
22 deletions
+24
-22
opengroundcontrol
audio/opengroundcontrol
+0
-0
mavground.pri
mavground.pri
+17
-16
Core.cc
src/Core.cc
+1
-4
GAudioOutput.cc
src/GAudioOutput.cc
+6
-2
No files found.
audio/opengroundcontrol
deleted
100755 → 0
View file @
f16a6a00
File deleted
mavground.pri
View file @
0b2bfa10
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
#
#
# MAVGround - Micro Air Vehicle Groundstation
# MAVGround - Micro Air Vehicle Groundstation
#
#
# Please see our website at <http://
pixhawk.ethz.ch
>
# Please see our website at <http://
qgroundcontrol.org
>
#
#
# Original Author:
# Original Author:
# Lorenz Meier <mavteam@student.ethz.ch>
# Lorenz Meier <mavteam@student.ethz.ch>
...
@@ -37,8 +37,6 @@ LANGUAGE = C++
...
@@ -37,8 +37,6 @@ LANGUAGE = C++
#CONFIG += static debug
#CONFIG += static debug
#CONFIG += static release console
#CONFIG += static release console
CONFIG += static debug_and_release console
CONFIG += static debug_and_release console
#QMAKE_CFLAGS += -j8
#QMAKE_CXXFLAGS += -j8
OBJECTS_DIR = $$BUILDDIR/obj
OBJECTS_DIR = $$BUILDDIR/obj
MOC_DIR = $$BUILDDIR/moc
MOC_DIR = $$BUILDDIR/moc
...
@@ -60,14 +58,16 @@ message(Qt version $$[QT_VERSION])
...
@@ -60,14 +58,16 @@ message(Qt version $$[QT_VERSION])
# MAC OS X
# MAC OS X
macx {
macx {
message(Building for Mac OS X)
HARDWARE_PLATFORM = $$system(uname -a)
config -= static
contains( HARDWARE_PLATFORM, x86_64 ) {
# x64 Mac OS X Snow Leopard 10.6 and later
HARDWARE_PLATFORM = $$system(g++ -dumpspecs)
CONFIG += x86_64 cocoa
contains( HARDWARE_PLATFORM, m64 ) {
CONFIG -= x86 static phonon
message(Building as 64-bit)
message(Building for Mac OS X 64bit/Snow Leopard 10.6 and later)
CONFIG += x86_64
} else {
CONFIG -= x86
# x86 Mac OS X Leopard 10.5 and earlier
CONFIG += x86 cocoa static phonon
message(Building for Mac OS X 32bit/Leopard 10.5 and earlier)
}
}
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.5
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.5
...
@@ -84,8 +84,8 @@ macx {
...
@@ -84,8 +84,8 @@ macx {
# Enable function-profiling with the OS X saturn tool
# Enable function-profiling with the OS X saturn tool
debug {
debug {
#
QMAKE_CXXFLAGS += -finstrument-functions
QMAKE_CXXFLAGS += -finstrument-functions
#
LIBS += -lSaturn
LIBS += -lSaturn
}
}
ICON = $$BASEDIR/images/icons/macx.icns
ICON = $$BASEDIR/images/icons/macx.icns
...
@@ -101,9 +101,9 @@ linux-g++ {
...
@@ -101,9 +101,9 @@ linux-g++ {
release {
release {
DESTDIR = $$BASEDIR
DESTDIR = $$BASEDIR
}
}
INCLUDEPATH += /usr/include
/SDL
INCLUDEPATH += /usr/include
HARDWARE_PLATFORM = $$system(uname -
p
)
HARDWARE_PLATFORM = $$system(uname -
a
)
contains( HARDWARE_PLATFORM, x86_64 ) {
contains( HARDWARE_PLATFORM, x86_64 ) {
# 64-bit Linux
# 64-bit Linux
LIBS += \
LIBS += \
...
@@ -137,7 +137,7 @@ win32 {
...
@@ -137,7 +137,7 @@ win32 {
LIBS += -L$$BASEDIR\lib\sdl\win32 \
LIBS += -L$$BASEDIR\lib\sdl\win32 \
-lmingw32 -lSDLmain -lSDL -mwindows
-lmingw32 -lSDLmain -lSDL -mwindows
INCLUDEPATH += $$BASEDIR/lib/sdl/include
/SDL
INCLUDEPATH += $$BASEDIR/lib/sdl/include
debug {
debug {
DESTDIR = $$BASEDIR/bin
DESTDIR = $$BASEDIR/bin
...
@@ -150,3 +150,4 @@ win32 {
...
@@ -150,3 +150,4 @@ win32 {
}
}
src/Core.cc
View file @
0b2bfa10
...
@@ -58,7 +58,7 @@ This file is part of the PIXHAWK project
...
@@ -58,7 +58,7 @@ This file is part of the PIXHAWK project
Core
::
Core
(
int
&
argc
,
char
*
argv
[])
:
QApplication
(
argc
,
argv
)
Core
::
Core
(
int
&
argc
,
char
*
argv
[])
:
QApplication
(
argc
,
argv
)
{
{
this
->
setApplicationName
(
"
OpenMAV Ground Control Station
"
);
this
->
setApplicationName
(
"
QGroundControl
"
);
this
->
setApplicationVersion
(
"v. 0.0.5"
);
this
->
setApplicationVersion
(
"v. 0.0.5"
);
this
->
setOrganizationName
(
QLatin1String
(
"OpenMAV Association"
));
this
->
setOrganizationName
(
QLatin1String
(
"OpenMAV Association"
));
this
->
setOrganizationDomain
(
"http://qgroundcontrol.org"
);
this
->
setOrganizationDomain
(
"http://qgroundcontrol.org"
);
...
@@ -89,9 +89,6 @@ Core::Core(int &argc, char* argv[]) : QApplication(argc, argv)
...
@@ -89,9 +89,6 @@ Core::Core(int &argc, char* argv[]) : QApplication(argc, argv)
splashScreen
->
showMessage
(
tr
(
"Starting UAS Manager"
),
Qt
::
AlignLeft
|
Qt
::
AlignBottom
,
QColor
(
62
,
93
,
141
));
splashScreen
->
showMessage
(
tr
(
"Starting UAS Manager"
),
Qt
::
AlignLeft
|
Qt
::
AlignBottom
,
QColor
(
62
,
93
,
141
));
startUASManager
();
startUASManager
();
// Start audio output
//GAudioOutput::instance()->say("Ground Control Station started", 1);
//tarsus = new ViconTarsusProtocol();
//tarsus = new ViconTarsusProtocol();
//tarsus->start();
//tarsus->start();
...
...
src/GAudioOutput.cc
View file @
0b2bfa10
...
@@ -193,7 +193,9 @@ bool GAudioOutput::startEmergency()
...
@@ -193,7 +193,9 @@ bool GAudioOutput::startEmergency()
if
(
!
emergency
)
if
(
!
emergency
)
{
{
emergency
=
true
;
emergency
=
true
;
emergencyTimer
->
start
(
1600
);
// Beep immediately and then start timer
beep
();
emergencyTimer
->
start
(
1500
);
}
}
return
true
;
return
true
;
}
}
...
@@ -216,7 +218,9 @@ bool GAudioOutput::stopEmergency()
...
@@ -216,7 +218,9 @@ bool GAudioOutput::stopEmergency()
void
GAudioOutput
::
beep
()
void
GAudioOutput
::
beep
()
{
{
m_media
->
setCurrentSource
(
Phonon
::
MediaSource
(
QString
(
"alert.wav"
).
toStdString
().
c_str
()));
// Use QFile to transform path for all OS
QFile
f
(
MG
::
DIR
::
getSupportFilesDirectory
()
+
QString
(
"/audio/alert.wav"
));
m_media
->
setCurrentSource
(
Phonon
::
MediaSource
(
f
.
fileName
().
toStdString
().
c_str
()));
m_media
->
play
();
m_media
->
play
();
}
}
...
...
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