PID Help for 4 motor drivetrain

Hello,
We have a 5-motor H-Drive, and we need a PID. Most well-known templates, such as eztemplate, LemLib, and JAR, use a 6-motor drivetrain. If I try to change the code to use only our main 4 motors, it just crashes. Is there any way to edit eztemplate to work with 4 motors without it destroying itself?

If you are just using PID you’d be better off coding it yourself check this out:
introduction_to_pid_controllers_ed2.pdf (400.2 KB)