Skip to contents

Calculates the distance of an object based on the round trip time of an echolocation pulse

Usage

radar.range(t, c = soundSpeedMedium(medium = "air"))

Arguments

t

Time in seconds

c

Speed of sound in transmission medium m/s (by default air)

Value

Distance to object

Examples

radar.range(2)
#> [1] 343
radar.range(2, c=343)
#> [1] 343
radar.range(2, c=soundSpeedMedium("sea water"))
#> [1] 1500