How To Code a four wheel six motor drivetrain?

How to code 6 motor drive base with inertia sensor?

old forum post, it contains some boilerplate code for 6 motor drive as a jumping off point but I wouldnt recommend just copying this as it is boilerplate and bare of anything really unique.