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
ecb0c803
Commit
ecb0c803
authored
Jan 15, 2016
by
Don Gagne
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2637 from DonLakeFlyer/APM3.2Support
APM 3.2 support
parents
cf87c62b
c6486f56
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
9 deletions
+14
-9
APMFlightModesComponent.qml
src/AutoPilotPlugins/APM/APMFlightModesComponent.qml
+8
-6
APMTuningComponent.cc
src/AutoPilotPlugins/APM/APMTuningComponent.cc
+4
-1
APMFirmwarePlugin.cc
src/FirmwarePlugin/APM/APMFirmwarePlugin.cc
+2
-2
No files found.
src/AutoPilotPlugins/APM/APMFlightModesComponent.qml
View file @
ecb0c803
...
...
@@ -35,8 +35,10 @@ QGCView {
id
:
rootQGCView
viewPanel
:
panel
property
real
_margins
:
ScreenTools
.
defaultFontPixelHeight
property
bool
_channelOptionsAvailable
:
controller
.
parameterExists
(
-
1
,
"
CH7_OPT
"
)
// Not available in all firmware types
property
real
_margins
:
ScreenTools
.
defaultFontPixelHeight
property
bool
_channel7OptionsAvailable
:
controller
.
parameterExists
(
-
1
,
"
CH7_OPT
"
)
// Not available in all firmware types
property
bool
_channel9OptionsAvailable
:
controller
.
parameterExists
(
-
1
,
"
CH9_OPT
"
)
// Not available in all firmware types
property
int
_channelOptionCount
:
_channel7OptionsAvailable
?
(
_channel9OptionsAvailable
?
6
:
2
)
:
0
QGCPalette
{
id
:
qgcPal
;
colorGroupEnabled
:
panel
.
enabled
}
...
...
@@ -117,7 +119,7 @@ QGCView {
anchors.left
:
flightModeSettings
.
right
text
:
"
Channel Options
"
font.weight
:
Font
.
DemiBold
visible
:
_channelOption
sAvailable
visible
:
_channelOption
Count
!=
0
}
Rectangle
{
...
...
@@ -128,7 +130,7 @@ QGCView {
width
:
channelOptColumn
.
width
+
(
_margins
*
2
)
height
:
channelOptColumn
.
height
+
ScreenTools
.
defaultFontPixelHeight
color
:
qgcPal
.
windowShade
visible
:
_channelOption
sAvailable
visible
:
_channelOption
Count
!=
0
Column
{
id
:
channelOptColumn
...
...
@@ -138,7 +140,7 @@ QGCView {
spacing
:
ScreenTools
.
defaultFontPixelHeight
Repeater
{
model
:
6
model
:
_channelOptionCount
Row
{
spacing
:
ScreenTools
.
defaultFontPixelWidth
...
...
@@ -155,7 +157,7 @@ QGCView {
FactComboBox
{
id
:
optCombo
width
:
ScreenTools
.
defaultFontPixelWidth
*
15
fact
:
_channelOptionsAvailable
?
controller
.
getParameterFact
(
-
1
,
"
CH
"
+
index
+
"
_OPT
"
)
:
nullFact
fact
:
controller
.
getParameterFact
(
-
1
,
"
CH
"
+
index
+
"
_OPT
"
)
indexModel
:
false
}
}
...
...
src/AutoPilotPlugins/APM/APMTuningComponent.cc
View file @
ecb0c803
...
...
@@ -72,7 +72,10 @@ QUrl APMTuningComponent::setupSource(void) const
case
MAV_TYPE_HEXAROTOR
:
case
MAV_TYPE_OCTOROTOR
:
case
MAV_TYPE_TRICOPTER
:
qmlFile
=
"qrc:/qml/APMTuningComponentCopter.qml"
;
// Older firmwares do not have CH9_OPT, we don't support Tuning on older firmwares
if
(
_autopilot
->
parameterExists
(
-
1
,
"CH9_OPT"
))
{
qmlFile
=
"qrc:/qml/APMTuningComponentCopter.qml"
;
}
break
;
default:
// No tuning panel
...
...
src/FirmwarePlugin/APM/APMFirmwarePlugin.cc
View file @
ecb0c803
...
...
@@ -320,7 +320,7 @@ void APMFirmwarePlugin::adjustMavlinkMessage(Vehicle* vehicle, mavlink_message_t
switch
(
vehicle
->
vehicleType
())
{
case
MAV_TYPE_FIXED_WING
:
supportedMajorNumber
=
3
;
supportedMinorNumber
=
4
;
supportedMinorNumber
=
2
;
break
;
case
MAV_TYPE_QUADROTOR
:
case
MAV_TYPE_COAXIAL
:
...
...
@@ -330,7 +330,7 @@ void APMFirmwarePlugin::adjustMavlinkMessage(Vehicle* vehicle, mavlink_message_t
case
MAV_TYPE_OCTOROTOR
:
case
MAV_TYPE_TRICOPTER
:
supportedMajorNumber
=
3
;
supportedMinorNumber
=
3
;
supportedMinorNumber
=
2
;
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