host: Give DCDC converter time to settle when we set PA output power.

This commit is contained in:
Alexander Chemeris
2015-04-28 20:14:08 -04:00
parent 451cc221be
commit 6bf16b4e66

View File

@@ -697,6 +697,9 @@ double umtrx_impl::set_pa_power(double power, const std::string &which)
// Set the value
set_pa_dcdc_r(dcdc_val);
// Wait for the DCDC converter output to settle before we read it back
boost::this_thread::sleep(boost::posix_time::milliseconds(100));
// Check what power do we actually have by reading the DCDC voltage
// and converting it to the PA power
double v_actual = read_dc_v("DCOUT").to_real();