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
ab6dcc78
Unverified
Commit
ab6dcc78
authored
Oct 29, 2018
by
Don Gagne
Committed by
GitHub
Oct 29, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6959 from Williangalvani/fixparams
Update sub components to use new battery failsafe parameters
parents
85fbef36
f635d5d3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
6 deletions
+11
-6
APMSafetyComponentSub.qml
src/AutoPilotPlugins/APM/APMSafetyComponentSub.qml
+3
-3
APMSafetyComponentSummarySub.qml
src/AutoPilotPlugins/APM/APMSafetyComponentSummarySub.qml
+3
-3
ArduSubFirmwarePlugin.cc
src/FirmwarePlugin/APM/ArduSubFirmwarePlugin.cc
+5
-0
No files found.
src/AutoPilotPlugins/APM/APMSafetyComponentSub.qml
View file @
ab6dcc78
...
...
@@ -39,7 +39,7 @@ SetupPage {
property
bool
_firmware34
:
_activeVehicle
.
firmwareMajorVersion
==
3
&&
_activeVehicle
.
firmwareMinorVersion
==
4
// Enable/Action parameters
property
Fact
_failsafeBatteryEnable
:
controller
.
getParameterFact
(
-
1
,
"
FS_BATT_ENABLE
"
)
property
Fact
_failsafeBatteryEnable
:
controller
.
getParameterFact
(
-
1
,
"
r.BATT_FS_LOW_ACT
"
)
property
Fact
_failsafeEKFEnable
:
controller
.
getParameterFact
(
-
1
,
"
FS_EKF_ACTION
"
)
property
Fact
_failsafeGCSEnable
:
controller
.
getParameterFact
(
-
1
,
"
FS_GCS_ENABLE
"
)
property
Fact
_failsafeLeakEnable
:
controller
.
getParameterFact
(
-
1
,
"
FS_LEAK_ENABLE
"
)
...
...
@@ -54,8 +54,8 @@ SetupPage {
property
Fact
_failsafeLeakPin
:
controller
.
getParameterFact
(
-
1
,
"
LEAK1_PIN
"
)
property
Fact
_failsafeLeakLogic
:
controller
.
getParameterFact
(
-
1
,
"
LEAK1_LOGIC
"
)
property
Fact
_failsafeEKFThreshold
:
controller
.
getParameterFact
(
-
1
,
"
FS_EKF_THRESH
"
)
property
Fact
_failsafeBatteryVoltage
:
controller
.
getParameterFact
(
-
1
,
"
FS_BATT_VOLTAGE
"
)
property
Fact
_failsafeBatteryCapacity
:
controller
.
getParameterFact
(
-
1
,
"
FS_BATT
_MAH
"
)
property
Fact
_failsafeBatteryVoltage
:
controller
.
getParameterFact
(
-
1
,
"
r.BATT_LOW_VOLT
"
)
property
Fact
_failsafeBatteryCapacity
:
controller
.
getParameterFact
(
-
1
,
"
r.BATT_LOW
_MAH
"
)
property
Fact
_armingCheck
:
controller
.
getParameterFact
(
-
1
,
"
ARMING_CHECK
"
)
...
...
src/AutoPilotPlugins/APM/APMSafetyComponentSummarySub.qml
View file @
ab6dcc78
...
...
@@ -19,7 +19,7 @@ FactPanel {
FactPanelController
{
id
:
controller
;
factPanel
:
panel
}
// Enable/Action parameters
property
Fact
_failsafeBatteryEnable
:
controller
.
getParameterFact
(
-
1
,
"
FS_BATT_ENABLE
"
)
property
Fact
_failsafeBatteryEnable
:
controller
.
getParameterFact
(
-
1
,
"
r.BATT_FS_LOW_ACT
"
)
property
Fact
_failsafeEKFEnable
:
controller
.
getParameterFact
(
-
1
,
"
FS_EKF_ACTION
"
)
property
Fact
_failsafeGCSEnable
:
controller
.
getParameterFact
(
-
1
,
"
FS_GCS_ENABLE
"
)
property
Fact
_failsafeLeakEnable
:
controller
.
getParameterFact
(
-
1
,
"
FS_LEAK_ENABLE
"
)
...
...
@@ -34,8 +34,8 @@ FactPanel {
property
Fact
_failsafeLeakPin
:
controller
.
getParameterFact
(
-
1
,
"
LEAK1_PIN
"
)
property
Fact
_failsafeLeakLogic
:
controller
.
getParameterFact
(
-
1
,
"
LEAK1_LOGIC
"
)
property
Fact
_failsafeEKFThreshold
:
controller
.
getParameterFact
(
-
1
,
"
FS_EKF_THRESH
"
)
property
Fact
_failsafeBatteryVoltage
:
controller
.
getParameterFact
(
-
1
,
"
FS_BATT_VOLTAGE
"
)
property
Fact
_failsafeBatteryCapacity
:
controller
.
getParameterFact
(
-
1
,
"
FS_BATT
_MAH
"
)
property
Fact
_failsafeBatteryVoltage
:
controller
.
getParameterFact
(
-
1
,
"
r.BATT_LOW_VOLT
"
)
property
Fact
_failsafeBatteryCapacity
:
controller
.
getParameterFact
(
-
1
,
"
r.BATT_LOW
_MAH
"
)
property
Fact
_armingCheck
:
controller
.
getParameterFact
(
-
1
,
"
ARMING_CHECK
"
)
...
...
src/FirmwarePlugin/APM/ArduSubFirmwarePlugin.cc
View file @
ab6dcc78
...
...
@@ -114,6 +114,11 @@ ArduSubFirmwarePlugin::ArduSubFirmwarePlugin(void):
remapV3_6
[
"ARMING_VOLT_MIN"
]
=
QStringLiteral
(
"ARMING_MIN_VOLT"
);
remapV3_6
[
"ARMING_VOLT2_MIN"
]
=
QStringLiteral
(
"ARMING_MIN_VOLT2"
);
remapV3_6
[
"BATT_AMP_PERVLT"
]
=
QStringLiteral
(
"BATT_AMP_PERVOLT"
);
remapV3_6
[
"BATT2_AMP_PERVLT"
]
=
QStringLiteral
(
"BATT2_AMP_PERVOL"
);
remapV3_6
[
"BATT_LOW_MAH"
]
=
QStringLiteral
(
"FS_BATT_MAH"
);
remapV3_6
[
"BATT_LOW_VOLT"
]
=
QStringLiteral
(
"FS_BATT_VOLTAGE"
);
remapV3_6
[
"BATT_FS_LOW_ACT"
]
=
QStringLiteral
(
"FS_BATT_ENABLE"
);
_remapParamNameIntialized
=
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