mirror of https://github.com/ArduPilot/ardupilot
AP_VideoTX: Change from division to multiplication
This commit is contained in:
parent
cad63eb6b6
commit
5d2c49e202
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue