Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
e9113de6
Commit
e9113de6
authored
Oct 30, 2018
by
Willian Galvani
Browse files
ArduCopterFirmwarePlugin: Add BATT_ARM_VOLT to remapper
parent
c249a90e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/FirmwarePlugin/APM/ArduCopterFirmwarePlugin.cc
View file @
e9113de6
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment