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
cbbac43f
Commit
cbbac43f
authored
Dec 23, 2012
by
Lorenz Meier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added flying wing support
parent
b3ba7ea3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
13 deletions
+34
-13
QGCXPlaneLink.cc
src/comm/QGCXPlaneLink.cc
+24
-10
configuration.h
src/configuration.h
+2
-2
UASInterface.h
src/uas/UASInterface.h
+3
-0
UASView.cc
src/ui/uas/UASView.cc
+5
-1
No files found.
src/comm/QGCXPlaneLink.cc
View file @
cbbac43f
...
...
@@ -38,6 +38,7 @@ This file is part of the QGROUNDCONTROL project
#include "QGC.h"
#include <QHostInfo>
#include "UAS.h"
#include "UASInterface.h"
#include "MainWindow.h"
QGCXPlaneLink
::
QGCXPlaneLink
(
UASInterface
*
mav
,
QString
remoteHost
,
QHostAddress
localHost
,
quint16
localPort
)
:
...
...
@@ -226,12 +227,8 @@ void QGCXPlaneLink::setRemoteHost(const QString& newHost)
void
QGCXPlaneLink
::
updateActuators
(
uint64_t
time
,
float
act1
,
float
act2
,
float
act3
,
float
act4
,
float
act5
,
float
act6
,
float
act7
,
float
act8
)
{
// XXX Control this via the onboard system type exclusively
if
(
mav
->
getSystemType
()
==
MAV_TYPE_QUADROTOR
)
// Only update this for multirotors
// if (airframeID == AIRFRAME_QUAD_X_MK_10INCH_I2C ||
// airframeID == AIRFRAME_QUAD_X_ARDRONE ||
// airframeID == AIRFRAME_QUAD_DJI_F450_PWM)
{
Q_UNUSED
(
time
);
...
...
@@ -294,9 +291,9 @@ void QGCXPlaneLink::updateControls(uint64_t time, float rollAilerons, float pitc
{
// Do not update this control type for
// all multirotors
if
(
airframeID
==
AIRFRAME_QUAD_X_MK_10INCH_I2C
||
airframeID
==
AIRFRAME_QUAD_X_ARDRONE
||
airframeID
==
AIRFRAME_QUAD_DJI_F450_PWM
)
if
(
mav
->
getSystemType
()
==
MAV_TYPE_QUADROTOR
||
mav
->
getSystemType
()
==
MAV_TYPE_HEXAROTOR
||
mav
->
getSystemType
()
==
MAV_TYPE_OCTOROTOR
)
{
return
;
}
...
...
@@ -316,9 +313,26 @@ void QGCXPlaneLink::updateControls(uint64_t time, float rollAilerons, float pitc
p
.
b
[
4
]
=
'\0'
;
p
.
index
=
12
;
p
.
f
[
0
]
=
-
pitchElevator
;
p
.
f
[
1
]
=
rollAilerons
;
p
.
f
[
2
]
=
yawRudder
;
if
(
mav
->
getAirframe
()
==
UASInterface
::
QGC_AIRFRAME_X8
||
mav
->
getAirframe
()
==
UASInterface
::
QGC_AIRFRAME_VIPER_2_0
||
mav
->
getAirframe
()
==
UASInterface
::
QGC_AIRFRAME_CAMFLYER_Q
)
{
// de-mix delta-mixed inputs
// pitch input - mixed roll and pitch channels
p
.
f
[
0
]
=
0.5
f
*
(
rollAilerons
-
pitchElevator
);
// roll input - mixed roll and pitch channels
p
.
f
[
1
]
=
0.5
f
*
(
rollAilerons
+
pitchElevator
);
// yaw
p
.
f
[
2
]
=
0.0
f
;
}
else
{
// direct pass-through
p
.
f
[
0
]
=
-
pitchElevator
;
p
.
f
[
1
]
=
rollAilerons
;
p
.
f
[
2
]
=
yawRudder
;
}
Q_UNUSED
(
time
);
Q_UNUSED
(
systemMode
);
...
...
src/configuration.h
View file @
cbbac43f
...
...
@@ -12,14 +12,14 @@
#define WITH_TEXT_TO_SPEECH 1
#define QGC_APPLICATION_NAME "QGroundControl"
#define QGC_APPLICATION_VERSION "v. 1.0.
1 (Alpha RC18
)"
#define QGC_APPLICATION_VERSION "v. 1.0.
2 (beta
)"
namespace
QGC
{
const
QString
APPNAME
=
"QGROUNDCONTROL"
;
const
QString
COMPANYNAME
=
"QGROUNDCONTROL"
;
const
int
APPLICATIONVERSION
=
10
1
;
// 1.0.1
const
int
APPLICATIONVERSION
=
10
2
;
// 1.0.1
}
#endif // QGC_CONFIGURATION_H
src/uas/UASInterface.h
View file @
cbbac43f
...
...
@@ -150,6 +150,9 @@ public:
QGC_AIRFRAME_PTERYX
,
QGC_AIRFRAME_TRICOPTER
,
QGC_AIRFRAME_HEXCOPTER
,
QGC_AIRFRAME_X8
,
QGC_AIRFRAME_VIPER_2_0
,
QGC_AIRFRAME_CAMFLYER_Q
,
QGC_AIRFRAME_END_OF_ENUM
};
...
...
src/ui/uas/UASView.cc
View file @
cbbac43f
...
...
@@ -547,7 +547,11 @@ void UASView::selectAirframe()
<<
"Predator"
<<
"Coaxial"
<<
"Pteryx"
<<
"Asctec Firefly"
;
<<
"Tricopter"
<<
"Asctec Firefly"
<<
"X8 Flying Wing"
<<
"Viper 2.0 Flying Wing"
<<
"Cam Flyer Q Flying Wing"
;
bool
ok
;
QString
item
=
QInputDialog
::
getItem
(
this
,
tr
(
"Select Airframe for %1"
).
arg
(
uas
->
getUASName
()),
...
...
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