Closed rsantos88 closed 5 years ago
Requires testing. BTW this could have been opened as a draft PR!
- I think that min-max values should be reversed when working with negative tr's. Am I right?
These changes have already been made in the .ini files. See: https://github.com/roboticslab-uc3m/teo-main/issues/39#issuecomment-466986628 example of the right elbow by @jgvictores.
- Please
#include <cmath>
and usestd::abs()
instead ofabs()
.- Can we broaden the scope of this PR to cover the review of velocity/acceleration reference values, too? Perhaps the same
abs
treatment should be applied insetRefSpeedRaw
andsetRefAccelerationRaw
.- Similarly in ICanBusSharerImpl.cpp, look for the
refSpeed
andrefAcceleration
class members.
Changes applied in the last 2 commits
Applied absolute value for tr in
setMinLimitRaw
andsetMaxLimitRaw
to configure the driver correctly with the new direction of rotations.