From 64b92e46f8500b4956a5334f360e703950eb2869 Mon Sep 17 00:00:00 2001 From: Matthias Grob Date: Tue, 6 May 2025 14:51:48 +0200 Subject: [PATCH] rc_update: follow parameter member naming convention for payload power switch mapping --- src/modules/rc_update/rc_update.cpp | 2 +- src/modules/rc_update/rc_update.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/rc_update/rc_update.cpp b/src/modules/rc_update/rc_update.cpp index 98fef8eb10..3f53321d52 100644 --- a/src/modules/rc_update/rc_update.cpp +++ b/src/modules/rc_update/rc_update.cpp @@ -220,7 +220,7 @@ void RCUpdate::update_rc_functions() _rc.function[rc_channels_s::FUNCTION_AUX_5] = _param_rc_map_aux5.get() - 1; _rc.function[rc_channels_s::FUNCTION_AUX_6] = _param_rc_map_aux6.get() - 1; - _rc.function[rc_channels_s::FUNCTION_PAYLOAD_POWER] = _param_rc_map_payload_sw.get() - 1; + _rc.function[rc_channels_s::FUNCTION_PAYLOAD_POWER] = _param_rc_map_pay_sw.get() - 1; for (int i = 0; i < rc_parameter_map_s::RC_PARAM_MAP_NCHAN; i++) { _rc.function[rc_channels_s::FUNCTION_PARAM_1 + i] = _parameters.rc_map_param[i] - 1; diff --git a/src/modules/rc_update/rc_update.h b/src/modules/rc_update/rc_update.h index 5cfc60c673..6c44b4cbcf 100644 --- a/src/modules/rc_update/rc_update.h +++ b/src/modules/rc_update/rc_update.h @@ -230,7 +230,7 @@ protected: (ParamInt) _param_rc_fails_thr, - (ParamInt) _param_rc_map_payload_sw, + (ParamInt) _param_rc_map_pay_sw, (ParamFloat) _param_rc_loiter_th, (ParamFloat) _param_rc_offb_th,