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
a3e6e48b
Unverified
Commit
a3e6e48b
authored
Nov 02, 2020
by
Don Gagne
Committed by
GitHub
Nov 02, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for BAT#_SOURCE (#9156)
parent
02216607
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
160 additions
and
158 deletions
+160
-158
BatteryParams.qml
src/AutoPilotPlugins/PX4/BatteryParams.qml
+11
-9
PowerComponent.qml
src/AutoPilotPlugins/PX4/PowerComponent.qml
+149
-149
No files found.
src/AutoPilotPlugins/PX4/BatteryParams.qml
View file @
a3e6e48b
...
@@ -26,15 +26,17 @@ QtObject {
...
@@ -26,15 +26,17 @@ QtObject {
property
var
controller
///< FactPanelController
property
var
controller
///< FactPanelController
property
int
batteryIndex
///< 1-based battery index
property
int
batteryIndex
///< 1-based battery index
property
bool
battVoltageDividerAvailable
:
controller
.
parameterExists
(
-
1
,
"
BAT#_V_DIV
"
.
replace
(
"
#
"
,
_indexedBatteryParamsAvailable
?
batteryIndex
:
""
))
property
bool
battAmpsPerVoltAvailable
:
controller
.
parameterExists
(
-
1
,
"
BAT#_A_PER_V
"
.
replace
(
"
#
"
,
_indexedBatteryParamsAvailable
?
batteryIndex
:
""
))
property
Fact
battSource
:
controller
.
getParameterFact
(
-
1
,
"
BAT#_SOURCE
"
.
replace
(
"
#
"
,
_indexedBatteryParamsAvailable
?
batteryIndex
:
""
))
property
Fact
battNumCells
:
controller
.
getParameterFact
(
-
1
,
"
BAT#_N_CELLS
"
.
replace
(
"
#
"
,
_indexedBatteryParamsAvailable
?
batteryIndex
:
""
))
property
Fact
battNumCells
:
controller
.
getParameterFact
(
-
1
,
"
BAT#_N_CELLS
"
.
replace
(
"
#
"
,
_indexedBatteryParamsAvailable
?
batteryIndex
:
""
))
property
Fact
battHighVolt
:
controller
.
getParameterFact
(
-
1
,
"
BAT#_V_CHARGED
"
.
replace
(
"
#
"
,
_indexedBatteryParamsAvailable
?
batteryIndex
:
""
))
property
Fact
battHighVolt
:
controller
.
getParameterFact
(
-
1
,
"
BAT#_V_CHARGED
"
.
replace
(
"
#
"
,
_indexedBatteryParamsAvailable
?
batteryIndex
:
""
))
property
Fact
battLowVolt
:
controller
.
getParameterFact
(
-
1
,
"
BAT#_V_EMPTY
"
.
replace
(
"
#
"
,
_indexedBatteryParamsAvailable
?
batteryIndex
:
""
))
property
Fact
battLowVolt
:
controller
.
getParameterFact
(
-
1
,
"
BAT#_V_EMPTY
"
.
replace
(
"
#
"
,
_indexedBatteryParamsAvailable
?
batteryIndex
:
""
))
property
Fact
battVoltLoadDrop
:
controller
.
getParameterFact
(
-
1
,
"
BAT#_V_LOAD_DROP
"
.
replace
(
"
#
"
,
_indexedBatteryParamsAvailable
?
batteryIndex
:
""
))
property
Fact
battVoltLoadDrop
:
controller
.
getParameterFact
(
-
1
,
"
BAT#_V_LOAD_DROP
"
.
replace
(
"
#
"
,
_indexedBatteryParamsAvailable
?
batteryIndex
:
""
))
property
Fact
battVoltageDivider
:
controller
.
getParameterFact
(
-
1
,
"
BAT#_V_DIV
"
.
replace
(
"
#
"
,
_indexedBatteryParamsAvailable
?
batteryIndex
:
""
),
false
)
property
Fact
battVoltageDivider
:
controller
.
getParameterFact
(
-
1
,
"
BAT#_V_DIV
"
.
replace
(
"
#
"
,
_indexedBatteryParamsAvailable
?
batteryIndex
:
""
),
false
)
property
Fact
battAmpsPerVolt
:
controller
.
getParameterFact
(
-
1
,
"
BAT#_A_PER_V
"
.
replace
(
"
#
"
,
_indexedBatteryParamsAvailable
?
batteryIndex
:
""
),
false
)
property
Fact
battAmpsPerVolt
:
controller
.
getParameterFact
(
-
1
,
"
BAT#_A_PER_V
"
.
replace
(
"
#
"
,
_indexedBatteryParamsAvailable
?
batteryIndex
:
""
),
false
)
property
bool
battVoltageDividerAvailable
:
controller
.
parameterExists
(
-
1
,
"
BAT#_V_DIV
"
.
replace
(
"
#
"
,
_indexedBatteryParamsAvailable
?
batteryIndex
:
""
))
property
bool
battAmpsPerVoltAvailable
:
controller
.
parameterExists
(
-
1
,
"
BAT#_A_PER_V
"
.
replace
(
"
#
"
,
_indexedBatteryParamsAvailable
?
batteryIndex
:
""
))
property
string
_batNCellsIndexedParamName
:
"
BAT#_N_CELLS
"
property
string
_batNCellsIndexedParamName
:
"
BAT#_N_CELLS
"
property
bool
_indexedBatteryParamsAvailable
:
controller
.
parameterExists
(
-
1
,
_batNCellsIndexedParamName
.
replace
(
"
#
"
,
1
))
property
bool
_indexedBatteryParamsAvailable
:
controller
.
parameterExists
(
-
1
,
_batNCellsIndexedParamName
.
replace
(
"
#
"
,
1
))
...
...
src/AutoPilotPlugins/PX4/PowerComponent.qml
View file @
a3e6e48b
This diff is collapsed.
Click to expand it.
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