From 8b348521477df64f03d7b7a51fa3d1fd4fd8c0c6 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 25 Mar 2019 19:35:03 +1100 Subject: [PATCH] Sub: add param conversion from MAG_ENABLE to COMPASS_ENABLED --- ArduSub/Parameters.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ArduSub/Parameters.cpp b/ArduSub/Parameters.cpp index 86c47be31b..3446ea0806 100644 --- a/ArduSub/Parameters.cpp +++ b/ArduSub/Parameters.cpp @@ -650,6 +650,8 @@ const AP_Param::ConversionInfo conversion_table[] = { { Parameters::k_param_fs_batt_voltage, 0, AP_PARAM_FLOAT, "BATT_LOW_VOLT" }, { Parameters::k_param_fs_batt_mah, 0, AP_PARAM_FLOAT, "BATT_LOW_MAH" }, { Parameters::k_param_failsafe_battery_enabled, 0, AP_PARAM_INT8, "BATT_FS_LOW_ACT" }, + + { Parameters::k_param_compass_enabled_deprecated, 0, AP_PARAM_INT8, "COMPASS_ENABLE" }, }; void Sub::load_parameters()