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
c043b38a
Commit
c043b38a
authored
Nov 11, 2010
by
lm
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of git@github.com:pixhawk/qgroundcontrol into dev
parents
cabf317b
d8c89fae
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
193 additions
and
54 deletions
+193
-54
qgroundcontrol.pri
qgroundcontrol.pri
+28
-2
MAVLinkXMLParser.cc
src/comm/MAVLinkXMLParser.cc
+133
-43
UDPLink.cc
src/comm/UDPLink.cc
+1
-1
UAS.cc
src/uas/UAS.cc
+16
-0
UASInterface.h
src/uas/UASInterface.h
+4
-0
QGCRemoteControlView.cc
src/ui/QGCRemoteControlView.cc
+11
-8
No files found.
qgroundcontrol.pri
View file @
c043b38a
...
...
@@ -157,10 +157,10 @@ linux-g++-64 {
}
# Windows (32bit
/64bit
)
# Windows (32bit)
win32 {
message(Building for Windows Platform (32
/64
bit))
message(Building for Windows Platform (32bit))
# Special settings for debug
#CONFIG += CONSOLE
...
...
@@ -185,5 +185,31 @@ win32 {
RC_FILE = $$BASEDIR/qgroundcontrol.rc
}
# Windows (64bit)
win64 {
message(Building for Windows Platform (64bit))
# Special settings for debug
#CONFIG += CONSOLE
INCLUDEPATH += $$BASEDIR\lib\sdl\include \
$$BASEDIR\lib\opal\include #\ #\
#"C:\Program Files\Microsoft SDKs\Windows\v7.0\Include"
LIBS += -L$$BASEDIR\lib\sdl\win32 \
-lmingw32 -lSDLmain -lSDL -mwindows
debug {
DESTDIR = $$BASEDIR/bin
}
release {
DESTDIR = $$BASEDIR/bin
}
RC_FILE = $$BASEDIR/qgroundcontrol.rc
}
src/comm/MAVLinkXMLParser.cc
View file @
c043b38a
This diff is collapsed.
Click to expand it.
src/comm/UDPLink.cc
View file @
c043b38a
...
...
@@ -36,7 +36,7 @@ This file is part of the QGROUNDCONTROL project
#include "UDPLink.h"
#include "LinkManager.h"
#include "MG.h"
#include <netinet/in.h>
//
#include <netinet/in.h>
UDPLink
::
UDPLink
(
QHostAddress
host
,
quint16
port
)
{
...
...
src/uas/UAS.cc
View file @
c043b38a
...
...
@@ -559,6 +559,22 @@ void UAS::receiveMessage(LinkInterface* link, mavlink_message_t message)
emit
textMessageReceived
(
uasId
,
message
.
compid
,
severity
,
text
);
}
break
;
#ifdef MAVLINK_ENABLED_PIXHAWK
case
MAVLINK_MSG_ID_POINT_OF_INTEREST
:
{
mavlink_point_of_interest_t
poi
;
mavlink_msg_point_of_interest_decode
(
&
message
,
&
poi
);
emit
poiFound
(
this
,
poi
.
type
,
poi
.
color
,
QString
((
QChar
*
)
poi
.
name
,
MAVLINK_MSG_POINT_OF_INTEREST_FIELD_NAME_LEN
),
poi
.
x
,
poi
.
y
,
poi
.
z
);
}
break
;
case
MAVLINK_MSG_ID_POINT_OF_INTEREST_CONNECTION
:
{
mavlink_point_of_interest_connection_t
poi
;
mavlink_msg_point_of_interest_connection_decode
(
&
message
,
&
poi
);
emit
poiConnectionFound
(
this
,
poi
.
type
,
poi
.
color
,
QString
((
QChar
*
)
poi
.
name
,
MAVLINK_MSG_POINT_OF_INTEREST_CONNECTION_FIELD_NAME_LEN
),
poi
.
x1
,
poi
.
y1
,
poi
.
z1
,
poi
.
x2
,
poi
.
y2
,
poi
.
z2
);
}
break
;
#endif
#ifdef MAVLINK_ENABLED_UALBERTA
case
MAVLINK_MSG_ID_NAV_FILTER_BIAS
:
{
...
...
src/uas/UASInterface.h
View file @
c043b38a
...
...
@@ -258,6 +258,10 @@ signals:
* @param text the status text
* @param severity The severity of the message, 0 for plain debug messages, 10 for very critical messages
*/
void
poiFound
(
UASInterface
*
uas
,
int
type
,
int
colorIndex
,
QString
message
,
float
x
,
float
y
,
float
z
);
void
poiConnectionFound
(
UASInterface
*
uas
,
int
type
,
int
colorIndex
,
QString
message
,
float
x1
,
float
y1
,
float
z1
,
float
x2
,
float
y2
,
float
z2
);
void
textMessageReceived
(
int
uasid
,
int
componentid
,
int
severity
,
QString
text
);
/**
* @brief Update the error count of a device
...
...
src/ui/QGCRemoteControlView.cc
View file @
c043b38a
...
...
@@ -184,12 +184,15 @@ void QGCRemoteControlView::redraw()
void
QGCRemoteControlView
::
changeEvent
(
QEvent
*
e
)
{
QWidget
::
changeEvent
(
e
);
switch
(
e
->
type
())
{
case
QEvent
:
:
LanguageChange
:
//ui->retranslateUi(this);
break
;
default:
break
;
}
Q_UNUSED
(
e
);
// FIXME If the lines below are commented in
// runtime errors can occur on x64 systems.
// QWidget::changeEvent(e);
// switch (e->type()) {
// case QEvent::LanguageChange:
// //ui->retranslateUi(this);
// break;
// default:
// break;
// }
}
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