rursprung / fhgr-mrproj2

A ROS 1 based tank with a LIDAR.
GNU General Public License v3.0
2 stars 2 forks source link

state motor-controller-pins defined for 0 vel #66

Closed joel5399 closed 1 year ago

joel5399 commented 1 year ago

The motors had different braking accelerations because I forgot to define a condition for the direction-GPIOs of the motor-controller at 0 velocity.

joel5399 commented 1 year ago

I think that would only work for the left side. On the Right side the state would be 0 if the velocity is zero.

rursprung commented 1 year ago

I think that would only work for the left side. On the Right side the state would be 0 if the velocity is zero.

for the right side it should already work without changes since $v{\text{right}} = 0 \not\gt 0$ and also $v{\text{right}} = 0 \not\lt 0$, so it'll always set it to 1 in this case. so you only need to use >= and <= for the left side