implemented mapping between desired thrust and applied pwm in

multirotor mixer.

Signed-off-by: Roman <bapstroman@gmail.com>
This commit is contained in:
Roman
2016-12-15 23:39:53 +01:00
committed by Lorenz Meier
parent 22733b1501
commit d221313dfb
9 changed files with 95 additions and 3 deletions
+8
View File
@@ -1295,6 +1295,14 @@ PX4IO::task_main()
}
}
/* thrust to pwm modelling factor */
parm_handle = param_find("THR_MDL_FAC");
if (parm_handle != PARAM_INVALID) {
param_get(parm_handle, &param_val);
(void)io_reg_set(PX4IO_PAGE_SETUP, PX4IO_P_SETUP_THR_MDL_FAC, FLOAT_TO_REG(param_val));
}
/* maximum motor pwm slew rate */
parm_handle = param_find("MOT_SLEW_MAX");