Development of collision avoidance algorithm using fuzzy inference