Added motor control function motorTune() that outputs time motors need to run based on a frequency difference.