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
6ae0542c
Unverified
Commit
6ae0542c
authored
Dec 16, 2017
by
Don Gagne
Committed by
GitHub
Dec 16, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5885 from bluerobotics/pr-arming-volt-param
Add ARMING_VOLT_MIN parameter to Power setup page
parents
935b0b2e
803f518f
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
32 additions
and
5 deletions
+32
-5
APMPowerComponent.qml
src/AutoPilotPlugins/APM/APMPowerComponent.qml
+16
-3
ArduCopterFirmwarePlugin.cc
src/FirmwarePlugin/APM/ArduCopterFirmwarePlugin.cc
+3
-0
ArduPlaneFirmwarePlugin.cc
src/FirmwarePlugin/APM/ArduPlaneFirmwarePlugin.cc
+3
-0
ArduRoverFirmwarePlugin.cc
src/FirmwarePlugin/APM/ArduRoverFirmwarePlugin.cc
+3
-0
ArduSubFirmwarePlugin.cc
src/FirmwarePlugin/APM/ArduSubFirmwarePlugin.cc
+7
-2
No files found.
src/AutoPilotPlugins/APM/APMPowerComponent.qml
View file @
6ae0542c
...
...
@@ -29,6 +29,7 @@ SetupPage {
Column
{
spacing
:
_margins
property
Fact
armVoltMin
:
controller
.
getParameterFact
(
-
1
,
"
r.ARMING_VOLT_MIN
"
)
property
Fact
battAmpPerVolt
:
controller
.
getParameterFact
(
-
1
,
"
BATT_AMP_PERVOLT
"
)
property
Fact
battCapacity
:
controller
.
getParameterFact
(
-
1
,
"
BATT_CAPACITY
"
)
property
Fact
battCurrPin
:
controller
.
getParameterFact
(
-
1
,
"
BATT_CURR_PIN
"
)
...
...
@@ -239,6 +240,18 @@ SetupPage {
QGCLabel
{
Layout.row
:
2
Layout.column
:
0
text
:
qsTr
(
"
Minimum arming voltage:
"
)
}
FactTextField
{
id
:
armVoltField
width
:
_fieldWidth
fact
:
armVoltMin
}
QGCLabel
{
Layout.row
:
3
Layout.column
:
0
text
:
qsTr
(
"
Power sensor:
"
)
}
...
...
@@ -260,7 +273,7 @@ SetupPage {
}
QGCLabel
{
Layout.row
:
3
Layout.row
:
4
Layout.column
:
0
text
:
qsTr
(
"
Current pin:
"
)
visible
:
_showAdvanced
...
...
@@ -274,7 +287,7 @@ SetupPage {
}
QGCLabel
{
Layout.row
:
4
Layout.row
:
5
Layout.column
:
0
text
:
qsTr
(
"
Voltage pin:
"
)
visible
:
_showAdvanced
...
...
@@ -288,7 +301,7 @@ SetupPage {
}
QGCLabel
{
Layout.row
:
5
Layout.row
:
6
Layout.column
:
0
text
:
qsTr
(
"
Voltage multiplier:
"
)
visible
:
_showAdvanced
...
...
src/FirmwarePlugin/APM/ArduCopterFirmwarePlugin.cc
View file @
6ae0542c
...
...
@@ -145,6 +145,9 @@ ArduCopterFirmwarePlugin::ArduCopterFirmwarePlugin(void)
remapV3_5
[
"SERVO13_REVERSED"
]
=
QStringLiteral
(
"RC13_REVERSED"
);
remapV3_5
[
"SERVO14_REVERSED"
]
=
QStringLiteral
(
"RC14_REVERSED"
);
remapV3_5
[
"ARMING_VOLT_MIN"
]
=
QStringLiteral
(
"ARMING_MIN_VOLT"
);
remapV3_5
[
"ARMING_VOLT2_MIN"
]
=
QStringLiteral
(
"ARMING_MIN_VOLT2"
);
_remapParamNameIntialized
=
true
;
}
}
...
...
src/FirmwarePlugin/APM/ArduPlaneFirmwarePlugin.cc
View file @
6ae0542c
...
...
@@ -110,6 +110,9 @@ ArduPlaneFirmwarePlugin::ArduPlaneFirmwarePlugin(void)
remapV3_8
[
"SERVO13_REVERSED"
]
=
QStringLiteral
(
"RC13_REVERSED"
);
remapV3_8
[
"SERVO14_REVERSED"
]
=
QStringLiteral
(
"RC14_REVERSED"
);
remapV3_8
[
"ARMING_VOLT_MIN"
]
=
QStringLiteral
(
"ARMING_MIN_VOLT"
);
remapV3_8
[
"ARMING_VOLT2_MIN"
]
=
QStringLiteral
(
"ARMING_MIN_VOLT2"
);
_remapParamNameIntialized
=
true
;
}
}
...
...
src/FirmwarePlugin/APM/ArduRoverFirmwarePlugin.cc
View file @
6ae0542c
...
...
@@ -89,6 +89,9 @@ ArduRoverFirmwarePlugin::ArduRoverFirmwarePlugin(void)
remapV3_2
[
"SERVO13_REVERSED"
]
=
QStringLiteral
(
"RC13_REVERSED"
);
remapV3_2
[
"SERVO14_REVERSED"
]
=
QStringLiteral
(
"RC14_REVERSED"
);
remapV3_2
[
"ARMING_VOLT_MIN"
]
=
QStringLiteral
(
"ARMING_MIN_VOLT"
);
remapV3_2
[
"ARMING_VOLT2_MIN"
]
=
QStringLiteral
(
"ARMING_MIN_VOLT2"
);
_remapParamNameIntialized
=
true
;
}
}
...
...
src/FirmwarePlugin/APM/ArduSubFirmwarePlugin.cc
View file @
6ae0542c
...
...
@@ -110,6 +110,11 @@ ArduSubFirmwarePlugin::ArduSubFirmwarePlugin(void):
remapV3_5
[
"FENCE_ALT_MIN"
]
=
QStringLiteral
(
"FENCE_DEPTH_MAX"
);
FirmwarePlugin
::
remapParamNameMap_t
&
remapV3_6
=
_remapParamName
[
3
][
6
];
remapV3_6
[
"ARMING_VOLT_MIN"
]
=
QStringLiteral
(
"ARMING_MIN_VOLT"
);
remapV3_6
[
"ARMING_VOLT2_MIN"
]
=
QStringLiteral
(
"ARMING_MIN_VOLT2"
);
_remapParamNameIntialized
=
true
;
}
...
...
@@ -150,8 +155,8 @@ QList<MAV_CMD> ArduSubFirmwarePlugin::supportedMissionCommands(void)
int
ArduSubFirmwarePlugin
::
remapParamNameHigestMinorVersionNumber
(
int
majorVersionNumber
)
const
{
// Remapping supports up to 3.
5
return
majorVersionNumber
==
3
?
5
:
Vehicle
::
versionNotSetValue
;
// Remapping supports up to 3.
6
return
majorVersionNumber
==
3
?
6
:
Vehicle
::
versionNotSetValue
;
}
int
ArduSubFirmwarePlugin
::
manualControlReservedButtonCount
(
void
)
...
...
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