From 5d2c49e2020233f11db0561618ef8b713a4da1e3 Mon Sep 17 00:00:00 2001 From: murata Date: Sat, 12 Mar 2022 02:38:56 +0900 Subject: [PATCH] AP_VideoTX: Change from division to multiplication --- libraries/AP_VideoTX/AP_VideoTX.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_VideoTX/AP_VideoTX.cpp b/libraries/AP_VideoTX/AP_VideoTX.cpp index dd2370af7c..ea786e6d85 100644 --- a/libraries/AP_VideoTX/AP_VideoTX.cpp +++ b/libraries/AP_VideoTX/AP_VideoTX.cpp @@ -161,7 +161,7 @@ void AP_VideoTX::set_power_dbm(uint8_t power) { _current_power = 800; break; default: - _current_power = uint16_t(roundf(powf(10, power / 10.0f))); + _current_power = uint16_t(roundf(powf(10, power * 0.1f))); break; } }