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
f739d087
Unverified
Commit
f739d087
authored
Oct 30, 2018
by
Don Gagne
Committed by
GitHub
Oct 30, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6970 from Williangalvani/fixBat
Add renamed battery parameters to parameter maps
parents
ab673bd9
1f6d32d3
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
10 deletions
+25
-10
APMPowerComponent.qml
src/AutoPilotPlugins/APM/APMPowerComponent.qml
+2
-2
ArduCopterFirmwarePlugin.cc
src/FirmwarePlugin/APM/ArduCopterFirmwarePlugin.cc
+7
-2
ArduPlaneFirmwarePlugin.cc
src/FirmwarePlugin/APM/ArduPlaneFirmwarePlugin.cc
+7
-2
ArduRoverFirmwarePlugin.cc
src/FirmwarePlugin/APM/ArduRoverFirmwarePlugin.cc
+7
-2
ArduSubFirmwarePlugin.cc
src/FirmwarePlugin/APM/ArduSubFirmwarePlugin.cc
+2
-2
No files found.
src/AutoPilotPlugins/APM/APMPowerComponent.qml
View file @
f739d087
...
...
@@ -121,7 +121,7 @@ SetupPage {
anchors.left
:
parent
.
left
sourceComponent
:
_batt1FullSettings
.
visible
?
powerSetupComponent
:
undefined
property
Fact
armVoltMin
:
controller
.
getParameterFact
(
-
1
,
"
r.
ARMING_VOLT_MIN
"
,
false
/* reportMissing */
)
property
Fact
armVoltMin
:
controller
.
getParameterFact
(
-
1
,
"
r.
BATT_ARM_VOLT
"
,
false
/* reportMissing */
)
property
Fact
battAmpPerVolt
:
controller
.
getParameterFact
(
-
1
,
"
r.BATT_AMP_PERVLT
"
,
false
/* reportMissing */
)
property
Fact
battCapacity
:
controller
.
getParameterFact
(
-
1
,
"
BATT_CAPACITY
"
,
false
/* reportMissing */
)
property
Fact
battCurrPin
:
controller
.
getParameterFact
(
-
1
,
"
BATT_CURR_PIN
"
,
false
/* reportMissing */
)
...
...
@@ -205,7 +205,7 @@ SetupPage {
anchors.left
:
parent
.
left
sourceComponent
:
batt2FullSettings
.
visible
?
powerSetupComponent
:
undefined
property
Fact
armVoltMin
:
controller
.
getParameterFact
(
-
1
,
"
r.
ARMING_VOLT2_MIN
"
,
false
/* reportMissing */
)
property
Fact
armVoltMin
:
controller
.
getParameterFact
(
-
1
,
"
r.
BATT2_ARM_VOLT
"
,
false
/* reportMissing */
)
property
Fact
battAmpPerVolt
:
controller
.
getParameterFact
(
-
1
,
"
r.BATT2_AMP_PERVLT
"
,
false
/* reportMissing */
)
property
Fact
battCapacity
:
controller
.
getParameterFact
(
-
1
,
"
BATT2_CAPACITY
"
,
false
/* reportMissing */
)
property
Fact
battCurrPin
:
controller
.
getParameterFact
(
-
1
,
"
BATT2_CURR_PIN
"
,
false
/* reportMissing */
)
...
...
src/FirmwarePlugin/APM/ArduCopterFirmwarePlugin.cc
View file @
f739d087
...
...
@@ -158,14 +158,19 @@ ArduCopterFirmwarePlugin::ArduCopterFirmwarePlugin(void)
remapV3_6
[
"PSC_ACCZ_P"
]
=
QStringLiteral
(
"ACCEL_Z_P"
);
remapV3_6
[
"PSC_ACCZ_I"
]
=
QStringLiteral
(
"ACCEL_Z_I"
);
FirmwarePlugin
::
remapParamNameMap_t
&
remapV3_7
=
_remapParamName
[
3
][
7
];
remapV3_7
[
"BATT_ARM_VOLT"
]
=
QStringLiteral
(
"ARMING_VOLT_MIN"
);
remapV3_7
[
"BATT2_ARM_VOLT"
]
=
QStringLiteral
(
"ARMING_VOLT2_MIN"
);
_remapParamNameIntialized
=
true
;
}
}
int
ArduCopterFirmwarePlugin
::
remapParamNameHigestMinorVersionNumber
(
int
majorVersionNumber
)
const
{
// Remapping supports up to 3.
5
return
majorVersionNumber
==
3
?
5
:
Vehicle
::
versionNotSetValue
;
// Remapping supports up to 3.
7
return
majorVersionNumber
==
3
?
7
:
Vehicle
::
versionNotSetValue
;
}
void
ArduCopterFirmwarePlugin
::
guidedModeLand
(
Vehicle
*
vehicle
)
...
...
src/FirmwarePlugin/APM/ArduPlaneFirmwarePlugin.cc
View file @
f739d087
...
...
@@ -113,12 +113,17 @@ ArduPlaneFirmwarePlugin::ArduPlaneFirmwarePlugin(void)
remapV3_8
[
"ARMING_VOLT_MIN"
]
=
QStringLiteral
(
"ARMING_MIN_VOLT"
);
remapV3_8
[
"ARMING_VOLT2_MIN"
]
=
QStringLiteral
(
"ARMING_MIN_VOLT2"
);
FirmwarePlugin
::
remapParamNameMap_t
&
remapV3_10
=
_remapParamName
[
3
][
10
];
remapV3_10
[
"BATT_ARM_VOLT"
]
=
QStringLiteral
(
"ARMING_VOLT_MIN"
);
remapV3_10
[
"BATT2_ARM_VOLT"
]
=
QStringLiteral
(
"ARMING_VOLT2_MIN"
);
_remapParamNameIntialized
=
true
;
}
}
int
ArduPlaneFirmwarePlugin
::
remapParamNameHigestMinorVersionNumber
(
int
majorVersionNumber
)
const
{
// Remapping supports up to 3.
8
return
majorVersionNumber
==
3
?
8
:
Vehicle
::
versionNotSetValue
;
// Remapping supports up to 3.
10
return
majorVersionNumber
==
3
?
10
:
Vehicle
::
versionNotSetValue
;
}
src/FirmwarePlugin/APM/ArduRoverFirmwarePlugin.cc
View file @
f739d087
...
...
@@ -92,14 +92,19 @@ ArduRoverFirmwarePlugin::ArduRoverFirmwarePlugin(void)
remapV3_2
[
"ARMING_VOLT_MIN"
]
=
QStringLiteral
(
"ARMING_MIN_VOLT"
);
remapV3_2
[
"ARMING_VOLT2_MIN"
]
=
QStringLiteral
(
"ARMING_MIN_VOLT2"
);
FirmwarePlugin
::
remapParamNameMap_t
&
remapV3_5
=
_remapParamName
[
3
][
5
];
remapV3_5
[
"BATT_ARM_VOLT"
]
=
QStringLiteral
(
"ARMING_VOLT_MIN"
);
remapV3_5
[
"BATT2_ARM_VOLT"
]
=
QStringLiteral
(
"ARMING_VOLT2_MIN"
);
_remapParamNameIntialized
=
true
;
}
}
int
ArduRoverFirmwarePlugin
::
remapParamNameHigestMinorVersionNumber
(
int
majorVersionNumber
)
const
{
// Remapping supports up to 3.
2
return
majorVersionNumber
==
3
?
2
:
Vehicle
::
versionNotSetValue
;
// Remapping supports up to 3.
5
return
majorVersionNumber
==
3
?
5
:
Vehicle
::
versionNotSetValue
;
}
void
ArduRoverFirmwarePlugin
::
guidedModeChangeAltitude
(
Vehicle
*
vehicle
,
double
altitudeChange
)
...
...
src/FirmwarePlugin/APM/ArduSubFirmwarePlugin.cc
View file @
f739d087
...
...
@@ -112,8 +112,8 @@ ArduSubFirmwarePlugin::ArduSubFirmwarePlugin(void):
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"
);
remapV3_6
[
"
BATT_ARM_VOLT
"
]
=
QStringLiteral
(
"ARMING_MIN_VOLT"
);
remapV3_6
[
"
BATT2_ARM_VOLT
"
]
=
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"
);
...
...
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