@restive aurora following on from the remote base issue, and again moving to the appropriate place.
General idea of changing the code like this:
- can drive the motors with speed instead of power or speed & distance. (then my robot will hopefully drive straight!)
- avoid passing a 0 distance to a command that needs a distance
I've added a SetVelocity function to my roboclaw driver, and I've made my own base, where I've changed the SetVelocity function to use the motor SetVelocity instead of runAll. I get this error: diff_base/diff_base.go:221:33: m.SetVelocity undefined (type motor.Motor has no field or method SetVelocity) . How do I add a new method to motor so base can see it?
err = multierr.Combine(err, m.SetVelocity(ctx, rRPM, extra)) - the line in question from my base component
and my components:
base: https://gist.github.com/ryanpennings/eee93bb5f4a56621a5472e7567817315
roboclaw: https://gist.github.com/ryanpennings/69651e8dd7a0bb1556f888936d1f4013