It’s really hard to figure out what is broken when we do not have your whole code or any description of why it is not working.
I recommend that you do not use mecanum as it is strenuous to code and put together correctly. A good alternative is an H-Drive drivetrain, as it will give the same strafing movement as the mecanum.
bro just make an H drive mecanum wheels are terrible in general
