LocalCoverage

class LocalCoverage(elevation: ElevationSource, atmosphere: Atmosphere = Atmosphere())(source)

RF coverage computed on the device from org.meshtastic:kp1812 (ITU-R P.1812) and an ElevationSource. It works offline once terrain is cached. P.1812 is a different model from the hosted planner's SPLAT! ITM, so predictions don't match it pixel for pixel.

Constructors

Link copied to clipboard
constructor(elevation: ElevationSource, atmosphere: Atmosphere = Atmosphere())

Functions

Link copied to clipboard
suspend fun sweep(site: Site, radials: Int = DEFAULT_RADIALS, receiversPerRadial: Int = DEFAULT_RECEIVERS, profileStepKm: Double = DEFAULT_PROFILE_STEP_KM): Coverage

Sweep radials out from site and return received signal strength at every sample point.

Link copied to clipboard
suspend fun LocalCoverage.sweepGrid(site: Site, resolution: Int = DEFAULT_GRID, profileStepKm: Double = DEFAULT_PROFILE_STEP_KM): CoverageGrid

Compute coverage onto a regular grid centered on site.

Link copied to clipboard
suspend fun LocalCoverage.sweepPolar(site: Site, radials: Int = DEFAULT_RADIALS, rings: Int = DEFAULT_RINGS, profileStepKm: Double = DEFAULT_PROFILE_STEP_KM, dispatcher: CoroutineDispatcher = coverageComputeDispatcher): PolarCoverage

Sweep coverage in polar form, one shared terrain profile per bearing.