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
127eb2ce
Commit
127eb2ce
authored
Sep 18, 2012
by
Lorenz Meier
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:mavlink/qgroundcontrol
parents
6390b271
94407a04
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
29 additions
and
26 deletions
+29
-26
mac_create_dmg.sh
deploy/mac_create_dmg.sh
+6
-3
Serializer
libs/lib/mac64/include/osgDB/Serializer
+1
-1
cache.cpp
libs/opmapcontrol/src/core/cache.cpp
+4
-4
MAVLinkProtocol.cc
src/comm/MAVLinkProtocol.cc
+2
-2
HUD.cc
src/ui/HUD.cc
+1
-1
MainWindow.cc
src/ui/MainWindow.cc
+10
-10
QGCVehicleConfig.cc
src/ui/QGCVehicleConfig.cc
+4
-4
Imagery.cc
src/ui/map3D/Imagery.cc
+1
-1
No files found.
deploy/mac_create_dmg.sh
View file @
127eb2ce
#!/bin/sh
cp
-r
../../qgroundcontrol-build-desktop/qgroundcontrol.app
.
cp
-r
../../qgroundcontrol-build-desktop
-Desktop_Qt_4_8_1_for_GCC__Qt_SDK__Release
/qgroundcontrol.app
.
cp
-r
../audio qgroundcontrol.app/Contents/MacOs/.
cp
-r
../
files/
audio qgroundcontrol.app/Contents/MacOs/.
mkdir
-p
qgroundcontrol.app/Contents/Frameworks/
mkdir
-p
qgroundcontrol.app/Contents/PlugIns/imageformats
mkdir
-p
qgroundcontrol.app/Contents/PlugIns/codecs
mkdir
-p
qgroundcontrol.app/Contents/PlugIns/accessible
# SDL is not copied by Qt - for whatever reason
cp
-r
/Library/Frameworks/SDL.framework qgroundcontrol.app/Contents/Frameworks/.
echo
-e
'\n\nStarting to create disk image. This may take a while..\n'
macdeployqt qgroundcontrol.app
-dmg
$HOME
/QtSDK/Desktop/Qt/4.8.1/gcc/bin/
macdeployqt qgroundcontrol.app
-dmg
rm
-rf
qgroundcontrol.app
echo
-e
'\n\n QGroundControl .DMG file is now ready for publishing\n'
libs/lib/mac64/include/osgDB/Serializer
View file @
127eb2ce
...
...
@@ -47,7 +47,7 @@ public:
if
(
_valueToString
.
find
(
value
)
!=
_valueToString
.
end
()
)
{
osg
::
notify
(
osg
::
WARN
)
<<
"Duplicate enum value "
<<
value
<<
" with old string: "
<<
_valueToString
[
value
]
<<
" with old string: "
<<
_valueToString
[
value
]
.
c_str
()
<<
" and new string: "
<<
str
<<
std
::
endl
;
}
_valueToString
[
value
]
=
str
;
...
...
libs/opmapcontrol/src/core/cache.cpp
View file @
127eb2ce
...
...
@@ -41,9 +41,9 @@ namespace core {
void
Cache
::
setCacheLocation
(
const
QString
&
value
)
{
cache
=
value
;
routeCache
=
cache
+
"RouteCache
"
+
QDir
::
separator
()
;
geoCache
=
cache
+
"GeocoderCache
"
+
QDir
::
separator
()
;
placemarkCache
=
cache
+
"PlacemarkCache
"
+
QDir
::
separator
()
;
routeCache
=
cache
+
"RouteCache
/"
;
geoCache
=
cache
+
"GeocoderCache
/"
;
placemarkCache
=
cache
+
"PlacemarkCache
/"
;
ImageCache
.
setGtileCache
(
value
);
}
QString
Cache
::
CacheLocation
()
...
...
@@ -54,7 +54,7 @@ namespace core {
{
if
(
cache
.
isNull
()
|
cache
.
isEmpty
())
{
cache
=
Utils
::
PathUtils
().
GetStoragePath
()
+
"mapscache"
+
QDir
::
separator
()
;
cache
=
QDir
::
homePath
()
+
"/mapscache/"
;
setCacheLocation
(
cache
);
}
}
...
...
src/comm/MAVLinkProtocol.cc
View file @
127eb2ce
...
...
@@ -539,8 +539,8 @@ void MAVLinkProtocol::sendHeartbeat()
{
mavlink_message_t
msg
;
mavlink_auth_key_t
auth
;
if
(
m_authKey
.
length
()
!=
MAVLINK_MSG_AUTH_KEY_FIELD_KEY_LEN
)
m_authKey
.
resize
(
MAVLINK_MSG_AUTH_KEY_FIELD_KEY_LEN
);
strcpy
(
auth
.
key
,
m_authKey
.
toStdString
().
c_str
(
));
memset
(
&
auth
,
0
,
sizeof
(
auth
)
);
memcpy
(
auth
.
key
,
m_authKey
.
toStdString
().
c_str
(),
qMin
(
m_authKey
.
length
(),
MAVLINK_MSG_AUTH_KEY_FIELD_KEY_LEN
));
mavlink_msg_auth_key_encode
(
getSystemId
(),
getComponentId
(),
&
msg
,
&
auth
);
sendMessage
(
msg
);
}
...
...
src/ui/HUD.cc
View file @
127eb2ce
...
...
@@ -797,7 +797,7 @@ void HUD::paintHUD()
// const float yawDeg = ((values.value("yaw", 0.0f)/M_PI)*180.0f)+180.f;
// YAW is in compass-human readable format, so 0 .. 360 deg.
float
yawDeg
=
(
(
yawLP
/
M_PI
)
*
180.0
f
)
+
180.0
f
;
float
yawDeg
=
(
yawLP
/
M_PI
)
*
180.0
f
;
if
(
yawDeg
<
0
)
yawDeg
+=
360
;
if
(
yawDeg
>
360
)
yawDeg
-=
360
;
/* final safeguard for really stupid systems */
...
...
src/ui/MainWindow.cc
View file @
127eb2ce
...
...
@@ -552,11 +552,11 @@ void MainWindow::buildCommonWidgets()
addCentralWidget
(
protocolWidget
,
"Mavlink Generator"
);
}
if
(
!
firmwareUpdateWidget
)
{
firmwareUpdateWidget
=
new
QGCFirmwareUpdate
(
this
);
addCentralWidget
(
firmwareUpdateWidget
,
"Firmware Update"
);
}
//
if (!firmwareUpdateWidget)
//
{
//
firmwareUpdateWidget = new QGCFirmwareUpdate(this);
//
addCentralWidget(firmwareUpdateWidget, "Firmware Update");
//
}
if
(
!
hudWidget
)
{
...
...
@@ -564,11 +564,11 @@ void MainWindow::buildCommonWidgets()
addCentralWidget
(
hudWidget
,
tr
(
"Head Up Display"
));
}
if
(
!
configWidget
)
{
configWidget
=
new
QGCVehicleConfig
(
this
);
addCentralWidget
(
configWidget
,
tr
(
"Vehicle Configuration"
));
}
//
if (!configWidget)
//
{
//
configWidget = new QGCVehicleConfig(this);
//
addCentralWidget(configWidget, tr("Vehicle Configuration"));
//
}
if
(
!
dataplotWidget
)
{
...
...
src/ui/QGCVehicleConfig.cc
View file @
127eb2ce
...
...
@@ -146,13 +146,13 @@ void QGCVehicleConfig::requestCalibrationRC()
for
(
unsigned
int
i
=
0
;
i
<
chanMax
;
++
i
)
{
mav
->
requestParameter
(
0
,
minTpl
.
arg
(
i
));
usleep
(
5000
);
QGC
::
SLEEP
::
usleep
(
5000
);
mav
->
requestParameter
(
0
,
trimTpl
.
arg
(
i
));
usleep
(
5000
);
QGC
::
SLEEP
::
usleep
(
5000
);
mav
->
requestParameter
(
0
,
maxTpl
.
arg
(
i
));
usleep
(
5000
);
QGC
::
SLEEP
::
usleep
(
5000
);
mav
->
requestParameter
(
0
,
revTpl
.
arg
(
i
));
usleep
(
5000
);
QGC
::
SLEEP
::
usleep
(
5000
);
}
}
...
...
src/ui/map3D/Imagery.cc
View file @
127eb2ce
...
...
@@ -614,7 +614,7 @@ Imagery::getTileLocation(int tileX, int tileY, int zoomLevel,
<<
"&y="
<<
tileY
<<
"&z="
<<
zoomLevel
;
break
;
case
OFFLINE_SATELLITE
:
oss
<<
mImageryPath
<<
"/200/color/"
<<
tileY
oss
<<
mImageryPath
.
c_str
()
<<
"/200/color/"
<<
tileY
<<
"/tile-"
;
if
(
tileResolution
<
1.0
)
{
...
...
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