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
a640bcec
Unverified
Commit
a640bcec
authored
6 years ago
by
Don Gagne
Committed by
GitHub
6 years ago
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6565 from DonLakeFlyer/RemoveHover
ArduCopter Tuning - Remove Hover Throttle from tuning
parents
018d48ef
a370e348
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
38 deletions
+0
-38
APMTuningComponentCopter.qml
src/AutoPilotPlugins/APM/APMTuningComponentCopter.qml
+0
-38
No files found.
src/AutoPilotPlugins/APM/APMTuningComponentCopter.qml
View file @
a640bcec
...
...
@@ -32,13 +32,6 @@ SetupPage {
QGCPalette
{
id
:
palette
;
colorGroupEnabled
:
true
}
// Older firmwares use THR_MODE, newer use MOT_THST_HOVER
property
bool
_throttleMidExists
:
controller
.
parameterExists
(
-
1
,
"
THR_MID
"
)
property
Fact
_hoverTuneParam
:
controller
.
getParameterFact
(
-
1
,
_throttleMidExists
?
"
THR_MID
"
:
"
MOT_THST_HOVER
"
)
property
real
_hoverTuneMin
:
_throttleMidExists
?
200
:
0
property
real
_hoverTuneMax
:
_throttleMidExists
?
800
:
1
property
real
_hoverTuneStep
:
_throttleMidExists
?
10
:
0.01
property
bool
_rcFeelAvailable
:
controller
.
parameterExists
(
-
1
,
"
RC_FEEL
"
)
property
bool
_atcInputTCAvailable
:
controller
.
parameterExists
(
-
1
,
"
ATC_INPUT_TC
"
)
property
Fact
_rcFeel
:
controller
.
getParameterFact
(
-
1
,
"
RC_FEEL
"
,
false
)
...
...
@@ -78,7 +71,6 @@ SetupPage {
// handler which updates your property with the new value, this first value change will trash
// your bound values. In order to work around this we don't set the values into the Sliders until
// after Qml load is done. We also don't track value changes until Qml load completes.
throttleHover
.
value
=
_hoverTuneParam
.
value
rollPitch
.
value
=
_rateRollP
.
value
climb
.
value
=
_rateClimbP
.
value
if
(
_rcFeelAvailable
)
{
...
...
@@ -150,36 +142,6 @@ SetupPage {
anchors.top
:
parent
.
top
spacing
:
_margins
Column
{
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
QGCLabel
{
text
:
qsTr
(
"
Throttle Hover
"
)
font.family
:
ScreenTools
.
demiboldFontFamily
}
QGCLabel
{
text
:
qsTr
(
"
How much throttle is needed to maintain a steady hover
"
)
}
Slider
{
id
:
throttleHover
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
minimumValue
:
_hoverTuneMin
maximumValue
:
_hoverTuneMax
stepSize
:
_hoverTuneStep
tickmarksEnabled
:
true
onValueChanged
:
{
if
(
_loadComplete
)
{
_hoverTuneParam
.
value
=
value
}
}
}
}
Column
{
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
...
...
This diff is collapsed.
Click to expand it.
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