Watchdog with adaptive timeout as function of speed of motor