radarRange {sonicscrewdriver} | R Documentation |
Calculates the distance of an object based on the round trip time of an echolocation pulse
radarRange(t, c = soundSpeed(medium = "air"))
t |
Time in seconds |
c |
Speed of sound in transmission medium m/s (by default air) |
Distance to object
radarRange(2)
radarRange(2, c=343)
radarRange(2, c=soundSpeed(medium = "sea water"))