VTOL: rename params _PTCH to _PITCH

Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
Silvan Fuhrer
2022-05-18 10:01:04 +02:00
parent 7c5f0121a5
commit 3cf07e1be5
4 changed files with 26 additions and 7 deletions
+19
View File
@@ -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) {