Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
aaa79e70
Unverified
Commit
aaa79e70
authored
Aug 30, 2019
by
Don Gagne
Committed by
GitHub
Aug 30, 2019
Browse files
Merge pull request #7741 from DonLakeFlyer/ArduRoverMode
Fix problems with ArduRover firmware parameter differences
parents
086bf6dc
b6f71f19
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/AutoPilotPlugins/APM/APMFlightModesComponentSummary.qml
View file @
aaa79e70
...
...
@@ -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 @
aaa79e70
...
...
@@ -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 @
aaa79e70
...
...
@@ -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
Supports
Markdown
0%
Try again
or
attach a new 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