mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 19:43:33 +08:00
replace FW_THR_CRUISE with FW_THR_TRIM
Signed-off-by: RomanBapst <bapstroman@gmail.com>
This commit is contained in:
committed by
Martina Rivizzigno
parent
226b8a6f90
commit
461d0561b8
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user