Replace CBRK_AIRSPD_CHK with SYS_HAS_NUM_ASPD

Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
Silvan Fuhrer
2023-12-21 11:34:28 +01:00
parent 9e0c8fd75e
commit 29807a5e50
12 changed files with 38 additions and 29 deletions
+15
View File
@@ -58,5 +58,20 @@ bool param_modify_on_import(bson_node_t node)
}
}
// 2023-12-06: translate CBRK_AIRSPD_CHK-> SYS_HAS_NUM_ASPD
{
if (strcmp("CBRK_AIRSPD_CHK", node->name) == 0) {
if (node->i32 == 162128) {
node->i32 = 0;
strcpy(node->name, "SYS_HAS_NUM_ASPD");
PX4_INFO("copying %s -> %s", "CBRK_AIRSPD_CHK", "SYS_HAS_NUM_ASPD");
}
return true;
}
}
return false;
}