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
98a5948b
Commit
98a5948b
authored
Nov 30, 2010
by
hengli
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of pixhawk.ethz.ch:qgroundcontrol into dev
parents
04c2a1a9
2caee818
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
32 additions
and
23 deletions
+32
-23
Waypoint.cc
src/Waypoint.cc
+3
-3
Freenect.cc
src/input/Freenect.cc
+8
-2
Freenect.h
src/input/Freenect.h
+2
-2
UAS.cc
src/uas/UAS.cc
+16
-16
Q3DWidget.cc
src/ui/map3D/Q3DWidget.cc
+3
-0
No files found.
src/Waypoint.cc
View file @
98a5948b
...
...
@@ -40,12 +40,12 @@ Waypoint::Waypoint(quint16 _id, float _x, float _y, float _z, float _yaw, bool _
y
(
_y
),
z
(
_z
),
yaw
(
_yaw
),
frame
(
_frame
),
action
(
_action
),
autocontinue
(
_autocontinue
),
current
(
_current
),
orbit
(
_orbit
),
holdTime
(
_holdTime
),
frame
(
_frame
),
action
(
_action
)
holdTime
(
_holdTime
)
{
}
...
...
src/input/Freenect.cc
View file @
98a5948b
...
...
@@ -137,8 +137,14 @@ Freenect::process(void)
return
false
;
}
freenect_get_raw_accel
(
device
,
&
ax
,
&
ay
,
&
az
);
freenect_get_mks_accel
(
device
,
&
dx
,
&
dy
,
&
dz
);
//libfreenect changed some access functions in one of the new revisions
freenect_raw_device_state
state
;
freenect_get_mks_accel
(
&
state
,
&
ax
,
&
ay
,
&
az
);
//tiltAngle = freenect_get_tilt_degs(&state);
//these are the old access functions
//freenect_get_raw_accel(device, &ax, &ay, &az);
//freenect_get_mks_accel(device, &dx, &dy, &dz);
return
true
;
}
...
...
src/input/Freenect.h
View file @
98a5948b
#ifndef FREENECT_H
#define FREENECT_H
#include <libfreenect.h>
#include <libfreenect
/libfreenect
.h>
#include <QMutex>
#include <QScopedPointer>
#include <QSharedPointer>
...
...
@@ -81,7 +81,7 @@ private:
QMutex
coloredDepthMutex
;
// accelerometer data
short
ax
,
ay
,
az
;
double
ax
,
ay
,
az
;
double
dx
,
dy
,
dz
;
// gamma map
...
...
src/uas/UAS.cc
View file @
98a5948b
...
...
@@ -559,22 +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_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/ui/map3D/Q3DWidget.cc
View file @
98a5948b
...
...
@@ -34,6 +34,9 @@ This file is part of the QGROUNDCONTROL project
#include <osg/Geometry>
#include <osg/LineWidth>
#include <osg/MatrixTransform>
#ifdef Q_OS_MACX
#include <Carbon/Carbon.h>
#endif
Q3DWidget
::
Q3DWidget
(
QWidget
*
parent
)
:
QGLWidget
(
parent
)
...
...
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