We are using YAGSL. Our modules are MK4is with NEO motors, CANcoders, and L2 gear ratio. I started with the config from the known configs repo for MK4is. I then changed the CAN IDs, and the wheels were running.
The problems I’m having are
A) The wheels steer (not drive) randomly when I let go of the stick. The wheels remain still for half a second, then start steering seemingly randomly. This happens even with the joystick unplugged, so I don’t think it’s a stick drift issue. This problem has been dubbed “party mode” because it seems very random. Lowering the P gain for the steering made them all jitter around a set point, but with that the P gain was too low for actual driving.
B) The “party mode” described above messes with the wheel steering angle. After letting go of the stick and pressing it in the same direction as before, the wheels will all face - different direction than before, and a different direction than each other. We had a few runs where the wheels were all super close to being aligned with each other, but then “party mode” would kick in when I let go of the stick, and the wheels would be facing the wrong direction next time I pushed the stick.
Here is my code. Any help is appreciated.