replace FW_THR_CRUISE with FW_THR_TRIM

Signed-off-by: RomanBapst <bapstroman@gmail.com>
This commit is contained in:
RomanBapst
2022-07-12 09:07:20 +02:00
committed by Martina Rivizzigno
parent 226b8a6f90
commit 461d0561b8
19 changed files with 29 additions and 38 deletions
+9
View File
@@ -246,5 +246,14 @@ bool param_modify_on_import(bson_node_t node)
}
}
// 2022-07-07: translate FW_THR_CRUISE->FW_THR_TRIM
{
if (strcmp("FW_THR_CRUISE", node->name) == 0) {
strcpy(node->name, "FW_THR_TRIM");
PX4_INFO("copying %s -> %s", "FW_THR_CRUISE", "FW_THR_TRIM");
return true;
}
}
return false;
}