mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-13 10:03:57 -03:00
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;
|
_current_power = 800;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
_current_power = uint16_t(roundf(powf(10, power / 10.0f)));
|
_current_power = uint16_t(roundf(powf(10, power * 0.1f)));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user