Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
qgroundcontrol
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Valentin Platzgummer
qgroundcontrol
Commits
7eacc342
Commit
7eacc342
authored
10 years ago
by
Lorenz Meier
Browse files
Options
Downloads
Plain Diff
Merge pull request #1372 from dogmaphobic/fixBattery
Advanced Power Config
parents
d890bbb0
afb59711
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/AutoPilotPlugins/PX4/ParameterFactMetaData.xml
+1
-0
1 addition, 0 deletions
src/AutoPilotPlugins/PX4/ParameterFactMetaData.xml
src/AutoPilotPlugins/PX4/PowerComponent.qml
+30
-13
30 additions, 13 deletions
src/AutoPilotPlugins/PX4/PowerComponent.qml
with
31 additions
and
13 deletions
src/AutoPilotPlugins/PX4/ParameterFactMetaData.xml
+
1
−
0
View file @
7eacc342
...
@@ -30,6 +30,7 @@
...
@@ -30,6 +30,7 @@
<short_desc>
Battery capacity
</short_desc>
<short_desc>
Battery capacity
</short_desc>
<long_desc>
Defines the capacity of the attached battery.
</long_desc>
<long_desc>
Defines the capacity of the attached battery.
</long_desc>
<default>
-1.0
</default>
<default>
-1.0
</default>
<unit>
mA
</unit>
</parameter>
</parameter>
<parameter
name=
"BAT_V_SCALE_IO"
type=
"INT32"
>
<parameter
name=
"BAT_V_SCALE_IO"
type=
"INT32"
>
<short_desc>
Scaling factor for battery voltage sensor on PX4IO
</short_desc>
<short_desc>
Scaling factor for battery voltage sensor on PX4IO
</short_desc>
...
...
This diff is collapsed.
Click to expand it.
src/AutoPilotPlugins/PX4/PowerComponent.qml
+
30
−
13
View file @
7eacc342
...
@@ -44,7 +44,7 @@ Rectangle {
...
@@ -44,7 +44,7 @@ Rectangle {
color
:
palette
.
window
color
:
palette
.
window
property
int
firstColumnWidth
:
220
property
int
firstColumnWidth
:
220
property
int
textEditWidth
:
6
0
property
int
textEditWidth
:
8
0
property
ScreenTools
screenTools
:
ScreenTools
{
}
property
ScreenTools
screenTools
:
ScreenTools
{
}
property
Fact
battNumCells
:
Fact
{
name
:
"
BAT_N_CELLS
"
}
property
Fact
battNumCells
:
Fact
{
name
:
"
BAT_N_CELLS
"
}
...
@@ -109,7 +109,7 @@ Rectangle {
...
@@ -109,7 +109,7 @@ Rectangle {
Rectangle
{
Rectangle
{
width
:
parent
.
width
width
:
parent
.
width
height
:
1
6
0
height
:
1
2
0
color
:
palette
.
windowShade
color
:
palette
.
windowShade
Column
{
Column
{
...
@@ -155,17 +155,6 @@ Rectangle {
...
@@ -155,17 +155,6 @@ Rectangle {
showUnits
:
true
showUnits
:
true
}
}
}
}
Row
{
spacing
:
10
visible
:
showAdvanced
.
checked
QGCLabel
{
text
:
"
Voltage Drop on Full Load (per cell)
"
;
width
:
firstColumnWidth
;
anchors.baseline
:
battDropField
.
baseline
}
FactTextField
{
id
:
battDropField
width
:
textEditWidth
fact
:
Fact
{
name
:
"
BAT_V_LOAD_DROP
"
}
showUnits
:
true
}
}
}
}
Canvas
{
Canvas
{
id
:
arrows
id
:
arrows
...
@@ -276,5 +265,33 @@ Rectangle {
...
@@ -276,5 +265,33 @@ Rectangle {
id
:
showAdvanced
id
:
showAdvanced
text
:
"
Show Advanced Settings
"
text
:
"
Show Advanced Settings
"
}
}
QGCLabel
{
text
:
"
Advanced Power Settings
"
color
:
palette
.
text
font.pointSize
:
screenTools
.
dpiAdjustedPointSize
(
20
);
visible
:
showAdvanced
.
checked
}
Rectangle
{
width
:
parent
.
width
height
:
40
color
:
palette
.
windowShade
visible
:
showAdvanced
.
checked
Column
{
id
:
advBatteryColumn
spacing
:
10
anchors.verticalCenter
:
parent
.
verticalCenter
x
:
(
parent
.
x
+
20
)
Row
{
spacing
:
10
QGCLabel
{
text
:
"
Voltage Drop on Full Load (per cell)
"
;
width
:
firstColumnWidth
;
anchors.baseline
:
battDropField
.
baseline
}
FactTextField
{
id
:
battDropField
width
:
textEditWidth
fact
:
Fact
{
name
:
"
BAT_V_LOAD_DROP
"
}
showUnits
:
true
}
}
}
}
}
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment