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
b6f71f19
Commit
b6f71f19
authored
Aug 30, 2019
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parent
65a7c5c1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
14 deletions
+20
-14
APMFlightModesComponentSummary.qml
src/AutoPilotPlugins/APM/APMFlightModesComponentSummary.qml
+9
-8
APMSafetyComponent.qml
src/AutoPilotPlugins/APM/APMSafetyComponent.qml
+5
-3
APMSafetyComponentSummary.qml
src/AutoPilotPlugins/APM/APMSafetyComponentSummary.qml
+6
-3
No files found.
src/AutoPilotPlugins/APM/APMFlightModesComponentSummary.qml
View file @
b6f71f19
...
...
@@ -11,14 +11,15 @@ Item {
FactPanelController
{
id
:
controller
;
}
property
var
_vehicle
:
controller
.
vehicle
property
Fact
flightMode1
:
controller
.
getParameterFact
(
-
1
,
_vehicle
.
rover
?
"
MODE1
"
:
"
FLTMODE1
"
)
property
Fact
flightMode2
:
controller
.
getParameterFact
(
-
1
,
_vehicle
.
rover
?
"
MODE2
"
:
"
FLTMODE2
"
)
property
Fact
flightMode3
:
controller
.
getParameterFact
(
-
1
,
_vehicle
.
rover
?
"
MODE3
"
:
"
FLTMODE3
"
)
property
Fact
flightMode4
:
controller
.
getParameterFact
(
-
1
,
_vehicle
.
rover
?
"
MODE4
"
:
"
FLTMODE4
"
)
property
Fact
flightMode5
:
controller
.
getParameterFact
(
-
1
,
_vehicle
.
rover
?
"
MODE5
"
:
"
FLTMODE5
"
)
property
Fact
flightMode6
:
controller
.
getParameterFact
(
-
1
,
_vehicle
.
rover
?
"
MODE6
"
:
"
FLTMODE6
"
)
property
var
_vehicle
:
controller
.
vehicle
property
bool
_roverFirmware
:
controller
.
parameterExists
(
-
1
,
"
MODE1
"
)
// This catches all usage of ArduRover firmware vehicle types: Rover, Boat...
property
Fact
flightMode1
:
controller
.
getParameterFact
(
-
1
,
_roverFirmware
?
"
MODE1
"
:
"
FLTMODE1
"
)
property
Fact
flightMode2
:
controller
.
getParameterFact
(
-
1
,
_roverFirmware
?
"
MODE2
"
:
"
FLTMODE2
"
)
property
Fact
flightMode3
:
controller
.
getParameterFact
(
-
1
,
_roverFirmware
?
"
MODE3
"
:
"
FLTMODE3
"
)
property
Fact
flightMode4
:
controller
.
getParameterFact
(
-
1
,
_roverFirmware
?
"
MODE4
"
:
"
FLTMODE4
"
)
property
Fact
flightMode5
:
controller
.
getParameterFact
(
-
1
,
_roverFirmware
?
"
MODE5
"
:
"
FLTMODE5
"
)
property
Fact
flightMode6
:
controller
.
getParameterFact
(
-
1
,
_roverFirmware
?
"
MODE6
"
:
"
FLTMODE6
"
)
Column
{
anchors.fill
:
parent
...
...
src/AutoPilotPlugins/APM/APMSafetyComponent.qml
View file @
b6f71f19
...
...
@@ -57,8 +57,10 @@ SetupPage {
property
Fact
_armingCheck
:
controller
.
getParameterFact
(
-
1
,
"
ARMING_CHECK
"
)
property
real
_margins
:
ScreenTools
.
defaultFontPixelHeight
property
bool
_showIcon
:
!
ScreenTools
.
isTinyScreen
property
real
_margins
:
ScreenTools
.
defaultFontPixelHeight
property
bool
_showIcon
:
!
ScreenTools
.
isTinyScreen
property
bool
_roverFirmware
:
controller
.
parameterExists
(
-
1
,
"
MODE1
"
)
// This catches all usage of ArduRover firmware vehicle types: Rover, Boat...
property
string
_restartRequired
:
qsTr
(
"
Requires vehicle reboot
"
)
...
...
@@ -322,7 +324,7 @@ SetupPage {
}
Loader
{
sourceComponent
:
controller
.
vehicle
.
rover
?
roverGeneralFS
:
undefined
sourceComponent
:
_roverFirmware
?
roverGeneralFS
:
undefined
}
Component
{
...
...
src/AutoPilotPlugins/APM/APMSafetyComponentSummary.qml
View file @
b6f71f19
...
...
@@ -27,6 +27,9 @@ Item {
property
Fact
_batt2FSCritAct
:
controller
.
getParameterFact
(
-
1
,
"
BATT2_FS_CRT_ACT
"
,
false
/* reportMissing */
)
property
bool
_batt1FSCritActAvailable
:
controller
.
parameterExists
(
-
1
,
"
BATT_FS_CRT_ACT
"
)
property
bool
_roverFirmware
:
controller
.
parameterExists
(
-
1
,
"
MODE1
"
)
// This catches all usage of ArduRover firmware vehicle types: Rover, Boat...
Column
{
anchors.fill
:
parent
...
...
@@ -56,7 +59,7 @@ Item {
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Throttle failsafe:
"
)
valueText
:
fact
?
fact
.
enumStringValue
:
""
visible
:
controller
.
vehicle
.
rover
visible
:
_roverFirmware
property
Fact
fact
:
controller
.
getParameterFact
(
-
1
,
"
FS_THR_ENABLE
"
,
false
/* reportMissing */
)
}
...
...
@@ -64,7 +67,7 @@ Item {
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Failsafe Action:
"
)
valueText
:
fact
?
fact
.
enumStringValue
:
""
visible
:
controller
.
vehicle
.
rover
visible
:
_roverFirmware
property
Fact
fact
:
controller
.
getParameterFact
(
-
1
,
"
FS_ACTION
"
,
false
/* reportMissing */
)
}
...
...
@@ -72,7 +75,7 @@ Item {
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Failsafe Crash Check:
"
)
valueText
:
fact
?
fact
.
enumStringValue
:
""
visible
:
controller
.
vehicle
.
rover
visible
:
_roverFirmware
property
Fact
fact
:
controller
.
getParameterFact
(
-
1
,
"
FS_CRASH_CHECK
"
,
false
/* reportMissing */
)
}
...
...
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