mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 12:23:34 +08:00
implemented slew-rate
This commit is contained in:
@@ -1245,6 +1245,14 @@ PX4IO::task_main()
|
||||
}
|
||||
}
|
||||
|
||||
/* maximum motor pwm slew rate */
|
||||
parm_handle = param_find("MOT_SLEW_MAX");
|
||||
|
||||
if (parm_handle != PARAM_INVALID) {
|
||||
param_get(parm_handle, ¶m_val);
|
||||
(void)io_reg_set(PX4IO_PAGE_SETUP, PX4IO_P_SETUP_MOTOR_SLEW_MAX, FLOAT_TO_REG(param_val));
|
||||
}
|
||||
|
||||
// Also trigger param update in Battery instance.
|
||||
_battery.updateParams();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user