From 91e09338ea7dc8ba2e20abdeae7dcf79c8320dcd Mon Sep 17 00:00:00 2001 From: murata Date: Thu, 26 Dec 2019 08:00:15 +0900 Subject: [PATCH] GCS_MAVLInk: Judgment of non-existence value by PARAM_SET --- libraries/GCS_MAVLink/GCS_Param.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/GCS_MAVLink/GCS_Param.cpp b/libraries/GCS_MAVLink/GCS_Param.cpp index 59d354107e..397737dc15 100644 --- a/libraries/GCS_MAVLink/GCS_Param.cpp +++ b/libraries/GCS_MAVLink/GCS_Param.cpp @@ -268,7 +268,7 @@ void GCS_MAVLINK::handle_param_set(const mavlink_message_t &msg) // find existing param so we can get the old value uint16_t parameter_flags = 0; vp = AP_Param::find(key, &var_type, ¶meter_flags); - if (vp == nullptr) { + if (vp == nullptr || isnan(packet.param_value) || isinf(packet.param_value)) { return; }