radar.range: Radar range

Description Usage Arguments Value Examples

View source: R/echolocation.R

Description

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

Usage

1
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

1
2
3
radar.range(2)
radar.range(2, c=343)
radar.range(2, c=soundSpeedMedium("sea water"))

sonicscrewdriver documentation built on May 2, 2021, 5:06 p.m.