I "upgraded" to OpenCat 2.0 and have noticed some problems.
Tail servo is now designated c3 instead of c2. Is this intentional? I notice in preprogrammed movements, the tail does not move as it did with the older code.
I can successfully make the robot crawl/walk/trot forward, left, and right, but pressing the "backwards" button on the remote makes it walk in place. Is there a way to check/fix the keymapping?
For those keeping score, I proposed adding the above line of code in a pull request. RL has now included it along with logic such that the delay only occurs for NyBoard 0_x.
I have tested and can confirm that the updated code works.
Thanks. I did three things that smoothed out and stabilized the walking motion.
Turned off gyros before starting to walk, as suggested above (biggest difference)
Made sure all stepper motor shaft screws are tight. They like to work loose and may benefit from blue threadlocker after calibration.
Changing the higlighted line in the code snippet above to make it more versatile.
I found 850 us to work well, but users can play around with that value as needed. I don't think a delay longer than 1000 us (1 ms) is necessary.
I have the MG90s that came with the Indiegogo kit that shipped with Nyboard 0_2. I was trying to have Nybble walk on carpet with the rubber "boots" (something it was able to do before without issue), but it is less stable now. Bootless and on a smooth floor it does fare better. Nonetheless, there's something about the gait in Opencat 2.0 that's causing it to tip over more often. I will try adding some additional weight to the bottom to lower the center of mass to see if that helps.
If you turn on the gyro, trot should be ok.
Attached is my Nybble walking and troting on a smooth floor.
What servos are used on your Nybble?
Thanks for the helpful clarifications. I agree that the current way of walking backwards is not intuitive.
Overall I'm finding the walk and trot actions less stable than in the original Nybble.ino from a couple of years ago. Motion is not as smooth and the robot is more likely to tip unless it has a very low center of mass. These were not issues before.
Yes, the tail is now assigned to another pin, so that the wiring direction is clockwise.
If the robot is walking forward, pressing the back button will make it walk in place. Pressing it again will make it walk backward. I'm going to cancel this logic in the next push.