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
db63cacb
Unverified
Commit
db63cacb
authored
Mar 18, 2020
by
Don Gagne
Committed by
GitHub
Mar 18, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8576 from DonLakeFlyer/MasterCherryPick
Master cherry pick
parents
09c886a5
6139f8b1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
38 deletions
+35
-38
APMSafetyComponent.qml
src/AutoPilotPlugins/APM/APMSafetyComponent.qml
+21
-29
RadioComponent.qml
src/AutoPilotPlugins/Common/RadioComponent.qml
+11
-6
QGCFileDialogController.cc
src/QmlControls/QGCFileDialogController.cc
+3
-3
No files found.
src/AutoPilotPlugins/APM/APMSafetyComponent.qml
View file @
db63cacb
...
...
@@ -58,6 +58,7 @@ SetupPage {
property
Fact
_armingCheck
:
controller
.
getParameterFact
(
-
1
,
"
ARMING_CHECK
"
)
property
real
_margins
:
ScreenTools
.
defaultFontPixelHeight
property
real
_innerMargin
:
_margins
/
2
property
bool
_showIcon
:
!
ScreenTools
.
isTinyScreen
property
bool
_roverFirmware
:
controller
.
parameterExists
(
-
1
,
"
MODE1
"
)
// This catches all usage of ArduRover firmware vehicle types: Rover, Boat...
...
...
@@ -551,8 +552,8 @@ SetupPage {
Rectangle
{
id
:
rtlSettings
width
:
rltAltFinalField
.
x
+
rltAltFinal
Field
.
width
+
_margins
height
:
rltAltFinalField
.
y
+
rltAltFinal
Field
.
height
+
_margins
width
:
landSpeedField
.
x
+
landSpeed
Field
.
width
+
_margins
height
:
landSpeedField
.
y
+
landSpeed
Field
.
height
+
_margins
color
:
ggcPal
.
windowShade
Image
{
...
...
@@ -578,7 +579,7 @@ SetupPage {
QGCRadioButton
{
id
:
returnAtCurrentRadio
anchors.margins
:
_
margins
anchors.margins
:
_
innerMargin
anchors.left
:
_showIcon
?
icon
.
right
:
parent
.
left
anchors.top
:
parent
.
top
text
:
qsTr
(
"
Return at current altitude
"
)
...
...
@@ -589,9 +590,9 @@ SetupPage {
QGCRadioButton
{
id
:
returnAltRadio
anchors.topMargin
:
_margins
anchors.left
:
returnAtCurrentRadio
.
left
anchors.topMargin
:
_innerMargin
anchors.top
:
returnAtCurrentRadio
.
bottom
anchors.left
:
returnAtCurrentRadio
.
left
text
:
qsTr
(
"
Return at specified altitude:
"
)
checked
:
_rtlAltFact
.
value
!=
0
...
...
@@ -620,7 +621,7 @@ SetupPage {
FactTextField
{
id
:
landDelayField
anchors.topMargin
:
_
margins
*
1.5
anchors.topMargin
:
_
innerMargin
anchors.left
:
rltAltField
.
left
anchors.top
:
rltAltField
.
bottom
fact
:
_rtlLoitTimeFact
...
...
@@ -628,42 +629,33 @@ SetupPage {
enabled
:
homeLoiterCheckbox
.
checked
===
true
}
QGCRadioButton
{
id
:
landRadio
QGCLabel
{
anchors.left
:
returnAtCurrentRadio
.
left
anchors.baseline
:
landSpeedField
.
baseline
text
:
qsTr
(
"
Land with descent speed:
"
)
checked
:
_rtlAltFinalFact
.
value
==
0
onClicked
:
_rtlAltFinalFact
.
value
=
0
anchors.baseline
:
rltAltFinalField
.
baseline
text
:
qsTr
(
"
Final land stage altitude:
"
)
}
FactTextField
{
id
:
landSpeedField
anchors.topMargin
:
_margins
*
1.5
anchors.top
:
landDelayField
.
bottom
id
:
rltAltFinalField
anchors.topMargin
:
_innerMargin
anchors.left
:
rltAltField
.
left
fact
:
_landSpeedFact
anchors.top
:
landDelayField
.
bottom
fact
:
_rtlAltFinalFact
showUnits
:
true
enabled
:
landRadio
.
checked
}
QGCRadioButton
{
id
:
finalLoiterRadio
QGCLabel
{
anchors.left
:
returnAtCurrentRadio
.
left
anchors.baseline
:
rltAltFinalField
.
baseline
text
:
qsTr
(
"
Final loiter altitude:
"
)
onClicked
:
_rtlAltFinalFact
.
value
=
_rtlAltFact
.
value
anchors.baseline
:
landSpeedField
.
baseline
text
:
qsTr
(
"
Final land stage descent speed:
"
)
}
FactTextField
{
id
:
rltAltFinal
Field
anchors.topMargin
:
_margins
/
2
id
:
landSpeed
Field
anchors.topMargin
:
_innerMargin
anchors.left
:
rltAltField
.
left
anchors.top
:
landSpeedField
.
bottom
fact
:
_rtlAltFinalFact
enabled
:
finalLoiterRadio
.
checked
anchors.top
:
rltAltFinalField
.
bottom
fact
:
_landSpeedFact
showUnits
:
true
}
}
// Rectangle - RTL Settings
...
...
src/AutoPilotPlugins/Common/RadioComponent.qml
View file @
db63cacb
...
...
@@ -8,7 +8,7 @@
****************************************************************************/
import
QtQuick
2.3
import
QtQuick
.
Controls
1.2
import
QtQuick
.
Controls
2.4
import
QtQuick
.
Dialogs
1.2
import
QtQuick
.
Layouts
1.11
...
...
@@ -90,7 +90,7 @@ SetupPage {
QGCViewDialog
{
function
accept
()
{
controller
.
spektrumBindMode
(
radioGroup
.
c
urrent
.
bindMode
)
controller
.
spektrumBindMode
(
radioGroup
.
c
heckedButton
.
bindMode
)
hideDialog
()
}
...
...
@@ -98,6 +98,8 @@ SetupPage {
hideDialog
()
}
ButtonGroup
{
id
:
radioGroup
}
Column
{
anchors.fill
:
parent
spacing
:
5
...
...
@@ -109,18 +111,21 @@ SetupPage {
}
QGCRadioButton
{
text
:
qsTr
(
"
DSM2 Mode
"
)
text
:
qsTr
(
"
DSM2 Mode
"
)
ButtonGroup.group
:
radioGroup
property
int
bindMode
:
RadioComponentController
.
DSM2
}
QGCRadioButton
{
text
:
qsTr
(
"
DSMX (7 channels or less)
"
)
text
:
qsTr
(
"
DSMX (7 channels or less)
"
)
ButtonGroup.group
:
radioGroup
property
int
bindMode
:
RadioComponentController
.
DSMX7
}
QGCRadioButton
{
checked
:
true
text
:
qsTr
(
"
DSMX (8 channels or more)
"
)
checked
:
true
text
:
qsTr
(
"
DSMX (8 channels or more)
"
)
ButtonGroup.group
:
radioGroup
property
int
bindMode
:
RadioComponentController
.
DSMX8
}
}
...
...
src/QmlControls/QGCFileDialogController.cc
View file @
db63cacb
...
...
@@ -44,7 +44,7 @@ QString QGCFileDialogController::filenameWithExtension(const QString& filename,
bool
matchFound
=
false
;
for
(
const
QString
&
extension
:
rgFileExtensions
)
{
QString
dotExtension
=
QString
(
".%1"
).
arg
(
extension
);
QString
dotExtension
=
QString
Literal
(
".%1"
).
arg
(
extension
);
matchFound
=
filenameWithExtension
.
endsWith
(
dotExtension
);
if
(
matchFound
)
{
break
;
...
...
@@ -52,10 +52,10 @@ QString QGCFileDialogController::filenameWithExtension(const QString& filename,
}
if
(
!
matchFound
)
{
filenameWithExtension
+=
rgFileExtensions
[
0
]
;
filenameWithExtension
+=
QStringLiteral
(
".%1"
).
arg
(
rgFileExtensions
[
0
])
;
}
return
filenameWithExtension
;
return
filenameWithExtension
;
}
bool
QGCFileDialogController
::
fileExists
(
const
QString
&
filename
)
...
...
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