Closed thomasfla closed 3 years ago
Could this one be merged? I would love to rebase the PR (https://github.com/open-dynamic-robot-initiative/master-board/pull/72) after this one is merged.
With this PR, the current unit for the Kp and Kd value are A/rot
and A/krpm
. Would it be more useful to use A/rad
and A/(rad*s)
such that the units are compatible with the returned position and velocity measurement (which are in SI units already).
With this PR, the current unit for the Kp and Kd value are
A/rot
andA/krpm
. Would it be more useful to useA/rad
andA/(rad*s)
such that the units are compatible with the returned position and velocity measurement (which are in SI units already)
Please ignore that comment. I see that we convert to SI units already and the table only talks about the internal protocol convention. All good.
Tested this locally and it works nicely. Therefore merging it into master. Working on a new patch file for the micro drivers.
iq = iq_ff + Kp (pos_ref - pos) + Kd*vel_ref-vel
Note that pure direct current is also possible by setting Kp=0 Kd=0To use this feature, you must first reflash your motor driver(uDriver) with the latest version of the firmware (to come).