param translation: fix for FW_GPSF_LT and FW_GPSF_R

Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
Silvan Fuhrer 2021-12-13 14:11:06 +01:00 committed by Beat Küng
parent ce6147f570
commit e9b9176ce2
1 changed files with 4 additions and 2 deletions

View File

@ -150,13 +150,15 @@ bool param_modify_on_import(bson_node_t node)
{
if (strcmp("NAV_GPSF_LT", node->name) == 0) {
strcpy(node->name, "FW_GPSF_LT");
PX4_INFO("copying %s -> %s", "NAV_GPSF_LT", "FW_GPSF_LT");
node->i32 = static_cast<int32_t>(node->d);
node->type = BSON_INT32;
PX4_INFO("copying %s -> %s", "NAV_GPSF_LT", "FW_GPSF_LT");
return true;
}
if (strcmp("NAV_GPSF_R", node->name) == 0) {
strcpy(node->name, "FW_GPSF_R");
PX4_INFO("copying and inverting sign %s -> %s", "NAV_GPSF_R", "FW_GPSF_R");
PX4_INFO("copying %s -> %s", "NAV_GPSF_R", "FW_GPSF_R");
return true;
}
}