adapt motor tuning code for 4 motor drive