From e9b9176ce2b870e8bbc0ff06275d49498a03156f Mon Sep 17 00:00:00 2001 From: Silvan Fuhrer Date: Mon, 13 Dec 2021 14:11:06 +0100 Subject: [PATCH] param translation: fix for FW_GPSF_LT and FW_GPSF_R Signed-off-by: Silvan Fuhrer --- src/lib/parameters/param_translation.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lib/parameters/param_translation.cpp b/src/lib/parameters/param_translation.cpp index 81003f967e..196bbba508 100644 --- a/src/lib/parameters/param_translation.cpp +++ b/src/lib/parameters/param_translation.cpp @@ -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(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; } }