if you use a speed controller to drive your motors that accepts servo inputs such as a sabertooth like this, then you should not need to alter your code. The speed controller connects just like a servo, and drives your motors in the same way that a servo modified for 360 rotation would rotate.