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
c8d8af39
Commit
c8d8af39
authored
Jun 06, 2016
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small screen fixes
parent
8176e73e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
28 deletions
+21
-28
RadioComponent.qml
src/AutoPilotPlugins/Common/RadioComponent.qml
+10
-18
RadioComponentController.cc
src/AutoPilotPlugins/Common/RadioComponentController.cc
+1
-1
RCChannelMonitor.qml
src/QmlControls/RCChannelMonitor.qml
+10
-9
No files found.
src/AutoPilotPlugins/Common/RadioComponent.qml
View file @
c8d8af39
...
@@ -433,20 +433,11 @@ QGCView {
...
@@ -433,20 +433,11 @@ QGCView {
QGCLabel
{
text
:
qsTr
(
"
Additional Radio setup:
"
)
}
QGCLabel
{
text
:
qsTr
(
"
Additional Radio setup:
"
)
}
Row
{
QGCButton
{
spacing
:
10
id
:
bindButton
text
:
qsTr
(
"
Spektrum Bind
"
)
QGCLabel
{
anchors.baseline
:
bindButton
.
baseline
text
:
qsTr
(
"
Place Spektrum satellite receiver in bind mode:
"
)
}
QGCButton
{
id
:
bindButton
text
:
qsTr
(
"
Spektrum Bind
"
)
onClicked
:
showDialog
(
spektrumBindDialogComponent
,
dialogTitle
,
qgcView
.
showDialogDefaultWidth
,
StandardButton
.
Ok
|
StandardButton
.
Cancel
)
onClicked
:
showDialog
(
spektrumBindDialogComponent
,
dialogTitle
,
qgcView
.
showDialogDefaultWidth
,
StandardButton
.
Ok
|
StandardButton
.
Cancel
)
}
}
}
QGCButton
{
QGCButton
{
...
@@ -488,12 +479,14 @@ QGCView {
...
@@ -488,12 +479,14 @@ QGCView {
id
:
rightColumn
id
:
rightColumn
anchors.top
:
parent
.
top
anchors.top
:
parent
.
top
anchors.right
:
parent
.
right
anchors.right
:
parent
.
right
width
:
defaultTextWidth
*
35
width
:
Math
.
min
(
defaultTextWidth
*
35
,
qgcView
.
width
*
0.4
)
spacing
:
10
spacing
:
ScreenTools
.
defaultFontPixelHeight
/
2
Row
{
Row
{
spacing
:
10
spacing
:
ScreenTools
.
defaultFontPixelWidth
ExclusiveGroup
{
id
:
modeGroup
}
ExclusiveGroup
{
id
:
modeGroup
}
QGCRadioButton
{
QGCRadioButton
{
exclusiveGroup
:
modeGroup
exclusiveGroup
:
modeGroup
text
:
qsTr
(
"
Mode 1
"
)
text
:
qsTr
(
"
Mode 1
"
)
...
@@ -513,14 +506,13 @@ QGCView {
...
@@ -513,14 +506,13 @@ QGCView {
Image
{
Image
{
width
:
parent
.
width
width
:
parent
.
width
height
:
defaultTextHeight
*
15
fillMode
:
Image
.
PreserveAspectFit
fillMode
:
Image
.
PreserveAspectFit
smooth
:
true
smooth
:
true
source
:
controller
.
imageHelp
source
:
controller
.
imageHelp
}
}
RCChannelMonitor
{
RCChannelMonitor
{
width
:
parent
.
width
width
:
parent
.
width
}
}
}
// Column - Right Column
}
// Column - Right Column
}
// QGCFlickable
}
// QGCFlickable
...
...
src/AutoPilotPlugins/Common/RadioComponentController.cc
View file @
c8d8af39
...
@@ -123,7 +123,7 @@ RadioComponentController::~RadioComponentController()
...
@@ -123,7 +123,7 @@ RadioComponentController::~RadioComponentController()
/// @brief Returns the state machine entry for the specified state.
/// @brief Returns the state machine entry for the specified state.
const
RadioComponentController
::
stateMachineEntry
*
RadioComponentController
::
_getStateMachineEntry
(
int
step
)
const
const
RadioComponentController
::
stateMachineEntry
*
RadioComponentController
::
_getStateMachineEntry
(
int
step
)
const
{
{
static
const
char
*
msgBeginPX4
=
"Lower the Throttle stick all the way down as shown in diagram.
\n
Reset all transmitter trims to center.
\n
\n
"
static
const
char
*
msgBeginPX4
=
"Lower the Throttle stick all the way down as shown in diagram.
\n\n
"
"It is recommended to disconnect all motors for additional safety, however, the system is designed to not arm during the calibration.
\n\n
"
"It is recommended to disconnect all motors for additional safety, however, the system is designed to not arm during the calibration.
\n\n
"
"Click Next to continue"
;
"Click Next to continue"
;
static
const
char
*
msgBeginAPM
=
"Lower the Throttle stick all the way down as shown in diagram.
\n
Reset all transmitter trims to center.
\n\n
"
static
const
char
*
msgBeginAPM
=
"Lower the Throttle stick all the way down as shown in diagram.
\n
Reset all transmitter trims to center.
\n\n
"
...
...
src/QmlControls/RCChannelMonitor.qml
View file @
c8d8af39
...
@@ -37,7 +37,6 @@ FactPanel {
...
@@ -37,7 +37,6 @@ FactPanel {
Item
{
Item
{
property
int
rcValue
:
1500
property
int
rcValue
:
1500
property
int
__lastRcValue
:
1500
property
int
__lastRcValue
:
1500
readonly
property
int
__rcValueMaxJitter
:
2
readonly
property
int
__rcValueMaxJitter
:
2
property
color
__barColor
:
qgcPal
.
windowShade
property
color
__barColor
:
qgcPal
.
windowShade
...
@@ -92,7 +91,7 @@ FactPanel {
...
@@ -92,7 +91,7 @@ FactPanel {
Column
{
Column
{
id
:
monitorColumn
id
:
monitorColumn
width
:
parent
.
width
width
:
parent
.
width
spacing
:
5
spacing
:
ScreenTools
.
defaultFontPixelHeight
/
2
QGCLabel
{
text
:
"
Channel Monitor
"
}
QGCLabel
{
text
:
"
Channel Monitor
"
}
...
@@ -107,12 +106,12 @@ FactPanel {
...
@@ -107,12 +106,12 @@ FactPanel {
}
}
Repeater
{
Repeater
{
id
:
channelMonitorRepeater
id
:
channelMonitorRepeater
model
:
controller
.
channelCount
model
:
controller
.
channelCount
width
:
parent
.
width
Row
{
Item
{
spacing
:
5
width
:
monitorColumn
.
width
height
:
ScreenTools
.
defaultFontPixelHeight
// Need this to get to loader from Connections above
// Need this to get to loader from Connections above
property
Item
loader
:
theLoader
property
Item
loader
:
theLoader
...
@@ -124,9 +123,11 @@ FactPanel {
...
@@ -124,9 +123,11 @@ FactPanel {
Loader
{
Loader
{
id
:
theLoader
id
:
theLoader
anchors.leftMargin
:
ScreenTools
.
defaultFontPixelWidth
/
2
anchors.left
:
channelLabel
.
right
anchors.verticalCenter
:
channelLabel
.
verticalCenter
anchors.verticalCenter
:
channelLabel
.
verticalCenter
height
:
qgcView
.
defaultText
Height
height
:
ScreenTools
.
defaultFontPixel
Height
width
:
200
width
:
parent
.
width
-
anchors
.
leftMargin
-
ScreenTools
.
defaultFontPixelWidth
sourceComponent
:
channelMonitorDisplayComponent
sourceComponent
:
channelMonitorDisplayComponent
property
bool
mapped
:
true
property
bool
mapped
:
true
...
...
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