This is the program I wrote for synchronizing the window motors on the grabber that run at different speeds for mechanical reasons.  It doesn't include driving.