Updated speed processing for DC motor

changed time for speed detection- taking too long