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
81837240
Commit
81837240
authored
Jun 24, 2016
by
Don Gagne
Committed by
GitHub
Jun 24, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PWM range is now 800<->2200 (#3644)
parent
b6f76e2a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
RadioComponent.qml
src/AutoPilotPlugins/Common/RadioComponent.qml
+5
-1
RCChannelMonitor.qml
src/QmlControls/RCChannelMonitor.qml
+5
-1
No files found.
src/AutoPilotPlugins/Common/RadioComponent.qml
View file @
81837240
...
...
@@ -176,6 +176,10 @@ QGCView {
readonly
property
int
__rcValueMaxJitter
:
2
property
color
__barColor
:
qgcPal
.
windowShade
readonly
property
int
_pwmMin
:
800
readonly
property
int
_pwmMax
:
2200
readonly
property
int
_pwmRange
:
_pwmMax
-
_pwmMin
// Bar
Rectangle
{
id
:
bar
...
...
@@ -198,7 +202,7 @@ QGCView {
anchors.verticalCenter
:
parent
.
verticalCenter
width
:
parent
.
height
*
0.75
height
:
width
x
:
((
Math
.
abs
((
rcValue
-
1000
)
-
(
reversed
?
1000
:
0
))
/
1000
)
*
parent
.
width
)
-
(
width
/
2
)
x
:
((
Math
.
abs
((
rcValue
-
_pwmMin
)
-
(
reversed
?
_pwmMin
:
0
))
/
_pwmRange
)
*
parent
.
width
)
-
(
width
/
2
)
radius
:
width
/
2
color
:
qgcPal
.
text
visible
:
mapped
...
...
src/QmlControls/RCChannelMonitor.qml
View file @
81837240
...
...
@@ -23,6 +23,10 @@ FactPanel {
id
:
_root
height
:
monitorColumn
.
height
readonly
property
int
_pwmMin
:
800
readonly
property
int
_pwmMax
:
2200
readonly
property
int
_pwmRange
:
_pwmMax
-
_pwmMin
QGCPalette
{
id
:
qgcPal
;
colorGroupEnabled
:
panel
.
enabled
}
RCChannelMonitorController
{
...
...
@@ -63,7 +67,7 @@ FactPanel {
anchors.verticalCenter
:
parent
.
verticalCenter
width
:
parent
.
height
*
0.75
height
:
width
x
:
((
Math
.
abs
((
rcValue
-
1000
)
-
(
reversed
?
1000
:
0
))
/
1000
)
*
parent
.
width
)
-
(
width
/
2
)
x
:
((
Math
.
abs
((
rcValue
-
_pwmMin
)
-
(
reversed
?
_pwmMin
:
0
))
/
_pwmRange
)
*
parent
.
width
)
-
(
width
/
2
)
radius
:
width
/
2
color
:
qgcPal
.
text
visible
:
mapped
...
...
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