mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 02:03:33 +08:00
VTOL: rename params _PTCH to _PITCH
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
@@ -146,6 +146,25 @@ bool param_modify_on_import(bson_node_t node)
|
||||
}
|
||||
}
|
||||
|
||||
// 2022-04-11: translate VT_PTCH_MIN to VT_PITCH_MIN
|
||||
{
|
||||
if (strcmp("VT_PTCH_MIN", node->name) == 0) {
|
||||
strcpy(node->name, "VT_PITCH_MIN");
|
||||
PX4_INFO("copying %s -> %s", "VT_PTCH_MIN", "VT_PITCH_MIN");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
// 2022-04-11: translate VT_LND_PTCH_MIN to VT_LND_PITCH_MIN
|
||||
{
|
||||
if (strcmp("VT_LND_PTCH_MIN", node->name) == 0) {
|
||||
strcpy(node->name, "VT_LND_PITCH_MIN");
|
||||
PX4_INFO("copying %s -> %s", "VT_LND_PTCH_MIN", "VT_LND_PITCH_MIN");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// 2021-10-21: translate NAV_GPSF_LT to FW_GPSF_LT and NAV_GPSF_R to FW_GPSF_R
|
||||
{
|
||||
if (strcmp("NAV_GPSF_LT", node->name) == 0) {
|
||||
|
||||
Reference in New Issue
Block a user