function [tps] = f_delay(x1,y1,x2,y2,n) c = 2.998*10^8; L1 = sqrt((x2-x1)^2+(y2-y1)^2); tps = (n*L1)/c;