diff --git a/CMakeLists.txt b/CMakeLists.txt index 532d9de3..98745407 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,6 +3,7 @@ cmake_minimum_required(VERSION 3.13 FATAL_ERROR) # Make sure that we are using the C++11 ABI, if not then there are some weird # inconsistencies with our precompiled headers add_compile_definitions(_GLIBCXX_USE_CXX11_ABI=1) +add_compile_options(-Wno-psabi) # Disable in-source builds to prevent source tree corruption. if(" ${CMAKE_SOURCE_DIR}" STREQUAL " ${CMAKE_BINARY_DIR}") diff --git a/configs/dev.json b/configs/dev.json index 8635cdb4..e4b9e52a 100644 --- a/configs/dev.json +++ b/configs/dev.json @@ -74,4 +74,4 @@ "mavlink": { "log_params": false } -} \ No newline at end of file +} diff --git a/src/network/mavlink.cpp b/src/network/mavlink.cpp index 3dba2099..6aefd393 100644 --- a/src/network/mavlink.cpp +++ b/src/network/mavlink.cpp @@ -81,7 +81,7 @@ MavlinkClient::MavlinkClient(OBCConfig config) // get it wrong. auto result = mavsdk::Param::Result::Unknown; if (param == "FS_LONG_TIMEOUT" || param == "AFS_RC_FAIL_TIME" || - param == "FS_SHORT_TIMEOUT") { + param == "FS_SHORT_TIMEOUT" || param == "AFS_TERM_ACTION") { result = this->param->set_param_float(param, val); } else { result = this->param->set_param_int(param, val);